Skip to content

Commit 89cc036

Browse files
buchdagrhansen
authored andcommitted
ci: use step outputs rather than env
1 parent 888de14 commit 89cc036

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
fetch-depth: 0
3434

3535
- name: Retrieve version
36-
run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
36+
id: docker-gen_version
37+
run: echo "VERSION=$(git describe --tags)" >> "$GITHUB_OUTPUT"
3738

3839
- name: Get Docker tags
3940
id: docker_meta
@@ -52,7 +53,7 @@ jobs:
5253
type=raw,value=debian,enable=${{ github.ref == 'refs/heads/main' && matrix.base == 'debian' }}
5354
labels: |
5455
org.opencontainers.image.authors=Nicolas Duchon <nicolas.duchon@gmail.com> (@buchdag), Jason Wilder
55-
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
56+
org.opencontainers.image.version=${{ steps.docker-gen_version.outputs.VERSION }}
5657
5758
- name: Set up QEMU
5859
uses: docker/setup-qemu-action@v2
@@ -78,7 +79,7 @@ jobs:
7879
uses: docker/build-push-action@v4
7980
with:
8081
context: .
81-
build-args: DOCKER_GEN_VERSION=${{ env.GIT_DESCRIBE }}
82+
build-args: DOCKER_GEN_VERSION=${{ steps.docker-gen_version.outputs.VERSION }}
8283
platforms: linux/amd64,linux/arm64,linux/arm/v7
8384
file: Dockerfile.${{ matrix.base }}
8485
push: true

0 commit comments

Comments
 (0)