Skip to content

Commit f12e9d0

Browse files
committed
docker version fix (#42)
Always a bit cumbersome to test CI release steps, and in particular Docker, because of the need to merge and deploy them before executing.
1 parent 01bb545 commit f12e9d0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ jobs:
2020

2121
- name: Get tag and SHA version
2222
run: |
23-
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
24-
echo "GIT_SHA=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
23+
echo "GITHUB_REF=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
24+
echo "GIT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
25+
echo "BINARY_VERSION=${{ env.GITHUB_REF }}_${{ env.GIT_SHA }}" >> $GITHUB_ENV
2526
2627
- name: Print versions
2728
run: |
28-
echo "RELEASE_VERSION: ${{ env.RELEASE_VERSION }}"
29+
echo "GITHUB_REF: ${{ env.GITHUB_REF }}"
2930
echo "GIT_SHA: ${{ env.GIT_SHA }}"
31+
echo "BINARY_VERSION: ${{ env.BINARY_VERSION }}"
3032
3133
- name: Generate Docker metadata
3234
id: meta
@@ -67,7 +69,7 @@ jobs:
6769
context: .
6870
push: true
6971
build-args: |
70-
VERSION=${{ env.RELEASE_VERSION }}-${{ env.GIT_SHA }}
72+
VERSION=${{ env.BINARY_VERSION }}
7173
platforms: linux/amd64,linux/arm64
7274
tags: ${{ steps.meta.outputs.tags }}
7375
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)