Skip to content

Commit

Permalink
use ${GITHUB_REF##*/} to get the tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjiU authored Jul 18, 2023
1 parent 8855176 commit 8746a32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ jobs:
- if: github.event_name == 'release' && github.event.action == 'created'
run: |
# Remove prefix
echo "::debug::GITHUB_REF ${GITHUB_REF}"
TAG_NAME=${GITHUB_REF:11}
echo "GITHUB_REF ${GITHUB_REF}"
TAG_NAME=${GITHUB_REF##*/}
# Change slashes to hyphens
TAG_NAME=${TAG_NAME//\//-}
echo "::debug::TAG_NAME ${TAG_NAME}"
echo "TAG_NAME ${TAG_NAME}"
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io:${TAG_NAME} -t flyte/mqtt-io:latest --push --build-arg BUILDX_QEMU_ENV=true .
- if: github.event_name == 'push'
run: |
Expand Down

0 comments on commit 8746a32

Please sign in to comment.