# GitOps: CI only bumps image tags in the gcp overlay; ArgoCD does the deploy. name: bump-images on: workflow_run: workflows: [ci] types: [completed] branches: [main] jobs: bump: if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest permissions: { contents: write } steps: - uses: actions/checkout@v4 - name: Refuse to deploy an unconfigured overlay run: | if grep -rl __GCP_PROJECT__ infra/k8s/overlays/gcp infra/argo-workflows; then echo "::error::run 'make gcp-configure PROJECT=' and commit before deploying" exit 1 fi - uses: imranismail/setup-kustomize@v2 - run: | cd infra/k8s/overlays/gcp for c in api web pipeline loader; do kustomize edit set image rarelens/$c=europe-west2-docker.pkg.dev/${{ secrets.GCP_PROJECT }}/rarelens/$c:${{ github.event.workflow_run.head_sha }} done - uses: stefanzweifel/git-auto-commit-action@v5 with: { commit_message: "chore: bump images to ${{ github.event.workflow_run.head_sha }}" }