Skip to content

Commit

Permalink
Fix tags parsing in deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanfei Shen committed Jun 2, 2021
1 parent bb0d799 commit 340dc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# GitHub Actions have GITHUB_REF as `refs/heads/<branch-or-tag>`, clean it up
run: make docker-push VERSION="${GITHUB_REF#refs/heads/}"
# GitHub Actions have GITHUB_REF as `refs/heads/<branch>` or `refs/tags/<tag>`, clean it up
run: make docker-push VERSION="$(echo $GITHUB_REF | sed 's!^refs/\(heads\|tags\)/!!')"

0 comments on commit 340dc62

Please sign in to comment.