From a9c9de280523cef40943ae0d60899194e6468436 Mon Sep 17 00:00:00 2001 From: Paulo Fidalgo Date: Thu, 16 Apr 2026 15:20:51 +0300 Subject: [PATCH] Fix: read VERSION before generating Docker tags --- .github/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2b881ab..19aa639 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -50,6 +50,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Read VERSION + id: version + run: echo "VERSION=$(cat VERSION)" >> $GITHUB_OUTPUT + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 @@ -72,10 +76,6 @@ jobs: id: extract_tag run: echo "tag=$(echo '${{ steps.meta.outputs.tags }}' | head -n 1)" >> $GITHUB_OUTPUT - - name: Read VERSION - id: version - run: echo "VERSION=$(cat VERSION)" >> $GITHUB_OUTPUT - - name: Build and push Docker image id: build uses: docker/build-push-action@v5