diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b535d60..fda2ee3 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -140,7 +140,10 @@ jobs: # against the sigstore community Fulcio instance. run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} - + update-manifest: + runs-on: ubuntu-latest + needs: ["build"] + steps: - name: Checkout manifest if: github.event_name == 'push' uses: actions/checkout@v4 @@ -150,12 +153,12 @@ jobs: if: github.event_name == 'push' uses: mikefarah/yq@master with: - cmd: yq eval '.tag = "${{ steps.meta.outputs.version }}"' -i values.yaml + cmd: yq eval '.tag = "${{ needs.build.outputs.meta.outputs.tags }}"' -i values.yaml - name: Git Auto Commit if: github.event_name == 'push' uses: stefanzweifel/git-auto-commit-action@v5.0.1 with: - commit_message: "Update deployment image to ${{ steps.meta.outputs.version }}" + commit_message: "Update deployment image tag to ${{ needs.build.outputs.meta.outputs.tags }}" branch: manifest commit_user_name: "github-actions[bot]" commit_user_email: "github-actions[bot]@users.noreply.github.com"