diff --git a/.github/workflows/build-push-docker-image.yml b/.github/workflows/build-push-docker-image.yml index 33e5fa4e..c5c1170e 100644 --- a/.github/workflows/build-push-docker-image.yml +++ b/.github/workflows/build-push-docker-image.yml @@ -14,6 +14,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + - name: Get latest tag + id: latest_tag + run: echo "name=tag::$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT + + - name: Use latest tag + run: | + echo "The latest tag is ${{ steps.latest_tag.outputs.tag }}" + git checkout ${{ steps.latest_tag.outputs.tag }} - name: Set up QEMU uses: docker/setup-qemu-action@v2