Skip to content

Commit 18aa505

Browse files
chore: improve Docker tags in release workflow by using variable (#121)
1 parent 25146e6 commit 18aa505

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ jobs:
7575
- name: Build and push docker image
7676
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
7777
uses: docker/build-push-action@v5
78+
env:
79+
DOCKER_REPOSITORY: ghcr.io/thenativeweb/get-next-version
7880
with:
7981
platforms: linux/amd64,linux/arm64
8082
push: true
81-
tags: ghcr.io/thenativeweb/get-next-version:latest,ghcr.io/thenativeweb/get-next-version:${{steps.get_next_version.outputs.version}}
83+
tags: ${{ env.DOCKER_REPOSITORY }}:latest,${{ env.DOCKER_REPOSITORY }}:${{steps.get_next_version.outputs.version}}

0 commit comments

Comments
 (0)