Skip to content

Commit

Permalink
Fix tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ostafen committed Jan 9, 2025
1 parent 77f9375 commit b4fa0f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Extract the version (v*.*.*) from the branch name
- name: Extract version
id: extract_version
run: echo "VERSION=${GITHUB_REF_NAME##*/}" >> $GITHUB_ENV

# Log in to GitHub Container Registry
- name: Log in to GHCR
uses: docker/login-action@v2
Expand All @@ -29,5 +34,5 @@ jobs:
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ github.ref_name }}
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ env.VERSION }}
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest

0 comments on commit b4fa0f6

Please sign in to comment.