Skip to content

Commit b4fa0f6

Browse files
committed
Fix tag
1 parent 77f9375 commit b4fa0f6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v3
1616

17+
# Extract the version (v*.*.*) from the branch name
18+
- name: Extract version
19+
id: extract_version
20+
run: echo "VERSION=${GITHUB_REF_NAME##*/}" >> $GITHUB_ENV
21+
1722
# Log in to GitHub Container Registry
1823
- name: Log in to GHCR
1924
uses: docker/login-action@v2
@@ -29,5 +34,5 @@ jobs:
2934
context: .
3035
push: true
3136
tags: |
32-
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ github.ref_name }}
37+
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ env.VERSION }}
3338
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest

0 commit comments

Comments
 (0)