Skip to content

Commit

Permalink
use github ref name
Browse files Browse the repository at this point in the history
  • Loading branch information
eedygreen committed Sep 6, 2024
1 parent ccccf32 commit 3133d20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/spectre-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Extract Version
- name: Repository name conversion
run: |
echo "VERSION=${GITHUBREF#refs/tags/}" >> $GITHUB_ENV
echo "REPO_NAME=${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV
- name: build / tag / push docker image into ghcr
Expand All @@ -47,7 +46,7 @@ jobs:
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.VERSION }}
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.ref_name }}

# - name: slack notify
# uses: 8398a7/action-slack@v3
Expand Down

0 comments on commit 3133d20

Please sign in to comment.