diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 657653e..6fadb75 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -66,6 +66,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} + build-args: LDFLAGS="-X main.SHA=${{ github.sha }}" - uses: docker/build-push-action@v4 if: github.repository != 'uswitch/vault-creds' @@ -75,4 +76,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta-forks.outputs.tags }} + build-args: LDFLAGS="-X main.SHA=${{ github.sha }}"