Skip to content

Commit 3133d20

Browse files
committed
use github ref name
1 parent ccccf32 commit 3133d20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/spectre-test.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ jobs:
3636
username: ${{ github.repository_owner }}
3737
password: ${{ secrets.GHCR_TOKEN }}
3838

39-
- name: Extract Version
39+
- name: Repository name conversion
4040
run: |
41-
echo "VERSION=${GITHUBREF#refs/tags/}" >> $GITHUB_ENV
4241
echo "REPO_NAME=${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV
4342
4443
- name: build / tag / push docker image into ghcr
@@ -47,7 +46,7 @@ jobs:
4746
with:
4847
context: .
4948
push: true
50-
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.VERSION }}
49+
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.ref_name }}
5150

5251
# - name: slack notify
5352
# uses: 8398a7/action-slack@v3

0 commit comments

Comments
 (0)