diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 4a90b6d..f604a38 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -16,6 +16,7 @@ jobs: run: | git fetch --tags latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) + echo "::set-output name=tag::$latest_tag" echo "💡 Latest tag: $latest_tag" - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -31,7 +32,7 @@ jobs: with: context: . push: true - tags: smile0301/auto-pixai:$latest_tag + tags: smile0301/auto-pixai:${{ steps.latest_tag.outputs.tag }} - name: Build and push latest uses: docker/build-push-action@v5 with: