We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f9375 commit b4fa0f6Copy full SHA for b4fa0f6
.github/workflows/release.yml
@@ -14,6 +14,11 @@ jobs:
14
- name: Checkout repository
15
uses: actions/checkout@v3
16
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
+
22
# Log in to GitHub Container Registry
23
- name: Log in to GHCR
24
uses: docker/login-action@v2
@@ -29,5 +34,5 @@ jobs:
29
34
context: .
30
35
push: true
31
36
tags: |
32
- ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ github.ref_name }}
37
+ ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ env.VERSION }}
33
38
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest
0 commit comments