From 8746a32a49d6540e4b61929aef5edb057ee9408a Mon Sep 17 00:00:00 2001 From: Benji <46675043+BenjiU@users.noreply.github.com> Date: Tue, 18 Jul 2023 13:36:11 +0200 Subject: [PATCH] use ${GITHUB_REF##*/} to get the tag name --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5dbb0fc6..1228c4b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: |