Skip to content

Commit

Permalink
fix: ref name in docker.yml (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Aug 30, 2023
1 parent f3c20bd commit 104fea6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ jobs:
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Generate tag name
env:
REF_NAME: ${{ github.ref_name }}
run: |
echo "TAG_NAME=$(echo $GITHUB_REF | sed 's/main/latest/g')" >>${GITHUB_ENV}
echo "TAG_NAME=$(echo $REF_NAME | sed 's/main/latest/g')" >>${GITHUB_ENV}
- uses: int128/docker-build-cache-config-action@v1
id: cache
Expand Down

0 comments on commit 104fea6

Please sign in to comment.