Skip to content

Commit

Permalink
Merge pull request #367 from nginx-proxy/version
Browse files Browse the repository at this point in the history
Fix `--version` output on the Docker image
  • Loading branch information
buchdag authored Aug 6, 2021
2 parents 41f48ce + c9f0f3e commit 1ffc239
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
Expand Down

0 comments on commit 1ffc239

Please sign in to comment.