Skip to content

Commit 1ffc239

Browse files
authored
Merge pull request #367 from nginx-proxy/version
Fix `--version` output on the Docker image
2 parents 41f48ce + c9f0f3e commit 1ffc239

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/dockerhub.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
type=semver,pattern={{major}}.{{minor}}
4040
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
4141
42+
- name: Retrieve version
43+
run: echo "VERSION=$(git describe --tags)" >> $GITHUB_ENV
44+
4245
- name: Set up QEMU
4346
uses: docker/setup-qemu-action@v1
4447

@@ -55,6 +58,7 @@ jobs:
5558
id: docker_build
5659
uses: docker/build-push-action@v2
5760
with:
61+
build-args: VERSION=${{ env.VERSION }}
5862
platforms: linux/amd64,linux/arm64,linux/arm/v7
5963
push: true
6064
tags: ${{ steps.docker_meta.outputs.tags }}

0 commit comments

Comments
 (0)