From 6d11ef9baf7edc2bb503a48732167af489e575f4 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 29 Sep 2022 12:18:53 +0300 Subject: [PATCH] ci: Add revision to Docker build args Signed-off-by: Stefan Prodan --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfeeb2f..e0be924 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,7 @@ jobs: fi echo ::set-output name=BUILD_DATE::$(date -u +'%Y-%m-%dT%H:%M:%SZ') echo ::set-output name=VERSION::${VERSION} + echo ::set-output name=REVISION::${GITHUB_SHA} - name: Generate images meta id: meta uses: docker/metadata-action@v4 @@ -65,6 +66,8 @@ jobs: builder: ${{ steps.buildx.outputs.name }} context: . file: ./Dockerfile.xx + build-args: | + REVISION=${{ steps.prep.outputs.REVISION }} platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}