fix: remove staging deploy (landing only exists in prod)
This commit is contained in:
@@ -5,8 +5,8 @@ on:
|
||||
branches: [trunk]
|
||||
|
||||
jobs:
|
||||
build-and-push-prod:
|
||||
name: Build & Push (Prod)
|
||||
build-and-push:
|
||||
name: Build & Push
|
||||
runs-on: heavy
|
||||
container: git.batida.io/batida/ci-node:latest
|
||||
steps:
|
||||
@@ -23,24 +23,10 @@ jobs:
|
||||
docker push git.batida.io/batida/batida-landing:${{ github.sha }}
|
||||
docker push git.batida.io/batida/batida-landing:latest
|
||||
|
||||
deploy-staging:
|
||||
name: Deploy Staging
|
||||
runs-on: heavy
|
||||
needs: [build-and-push-prod]
|
||||
container: git.batida.io/batida/ci-node:latest
|
||||
steps:
|
||||
- name: Deploy to staging
|
||||
run: |
|
||||
echo "$KUBECONFIG_CONTENT" > /tmp/kubeconfig
|
||||
kubectl --kubeconfig /tmp/kubeconfig set image deployment/batida-landing batida-landing=git.batida.io/batida/batida-landing:${{ github.sha }} -n staging
|
||||
kubectl --kubeconfig /tmp/kubeconfig rollout status deployment/batida-landing -n staging --timeout=120s
|
||||
env:
|
||||
KUBECONFIG_CONTENT: ${{ secrets.KUBECONFIG }}
|
||||
|
||||
deploy-prod:
|
||||
name: Deploy Prod
|
||||
runs-on: heavy
|
||||
needs: [deploy-staging]
|
||||
needs: [build-and-push]
|
||||
container: git.batida.io/batida/ci-node:latest
|
||||
steps:
|
||||
- name: Deploy to prod
|
||||
|
||||
Reference in New Issue
Block a user