From c9f0f3e078e248094f0fb772c18a9aace6ce3413 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Fri, 6 Aug 2021 14:24:12 +0200 Subject: [PATCH] ci: fix --version output on the Docker image --- .github/workflows/dockerhub.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index ed287b18..115893f4 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -39,6 +39,9 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} + - name: Retrieve version + run: echo "VERSION=$(git describe --tags)" >> $GITHUB_ENV + - name: Set up QEMU uses: docker/setup-qemu-action@v1 @@ -55,6 +58,7 @@ jobs: id: docker_build uses: docker/build-push-action@v2 with: + build-args: VERSION=${{ env.VERSION }} platforms: linux/amd64,linux/arm64,linux/arm/v7 push: true tags: ${{ steps.docker_meta.outputs.tags }}