From 357da540837b426a80c9d7c00a689b71d84196dc Mon Sep 17 00:00:00 2001 From: Mukhtar Akere Date: Wed, 18 Dec 2024 17:20:59 +0100 Subject: [PATCH] Fix docker.yml --- .github/workflows/docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8ba5de9..bc012ed 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,8 +16,8 @@ jobs: - name: Get version id: get_version run: | - VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "") - echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT + echo "latest_tag=$(git tag | sort --version-sort | tail -n1)" >> $GITHUB_ENV + echo "latest tag: $latest_tag" - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -49,4 +49,4 @@ jobs: push: true tags: | cy01/blackhole:latest - cy01/blackhole:${{ steps.get_version.outputs.VERSION }} \ No newline at end of file + cy01/blackhole:${{ env.latest_tag }} \ No newline at end of file