diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a3af45..9163439 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -179,20 +179,24 @@ jobs: repository: cartsnitch/infra token: ${{ steps.app-token.outputs.token }} ref: main + path: infra - name: Install kubectl uses: azure/setup-kubectl@v4 + - name: Install kustomize + uses: imranismail/setup-kustomize@v2 + - name: Update dev overlay image tag - working-directory: apps/overlays/dev run: | + cd infra/apps/overlays/dev kustomize edit set image ghcr.io/cartsnitch/cartsnitch:${{ needs.build-and-push.outputs.calver_tag }} - name: Commit and push to infra run: | - cd apps/overlays/dev + cd infra git config user.name "cartsnitch-ci[bot]" git config user.email "cartsnitch-ci[bot]@users.noreply.github.com" - git add kustomization.yaml + git add apps/overlays/dev/kustomization.yaml git commit -m "ci(dev): update cartsnitch image to ${{ needs.build-and-push.outputs.calver_tag }}" git push origin main