From 47e72597146e4a7568acc7cb3aa90f5ceff4fef5 Mon Sep 17 00:00:00 2001 From: Felipe Martin <812088+fmartingr@users.noreply.github.com> Date: Sat, 30 Mar 2024 08:44:02 +0100 Subject: [PATCH] fix(ci): use correct tag names on version bump (#864) --- .github/workflows/_buildx.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/_buildx.yml b/.github/workflows/_buildx.yml index c560193..c530390 100644 --- a/.github/workflows/_buildx.yml +++ b/.github/workflows/_buildx.yml @@ -29,20 +29,20 @@ jobs: run: | REPO=ghcr.io/${{ github.repository }} TAG=$(git describe --tags) - if [ -z "$(git tag --points-at HEAD)" ] || [[ "$TAG" == *"rc"* ]] - then - TAG2="dev" - else - TAG2="latest" - fi - echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV + echo "tag_flags=--tag $REPO:$TAG --tag $REPO:latest" >> $GITHUB_ENV - name: Prepare version push tags if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') run: | REPO=ghcr.io/${{ github.repository }} TAG=$(git describe --tags) - echo "tag_flags=--tag $REPO:$TAG --tag $REPO:dev" >> $GITHUB_ENV + if [[ "$TAG" == *"rc"* ]] + then + TAG2="dev" + else + TAG2="latest" + fi + echo "tag_flags=--tag $REPO:$TAG --tag $REPO:$TAG2" >> $GITHUB_ENV - name: Prepare pull request tags if: github.event_name == 'pull_request'