From ee263d62248df59918d7aeebacf60faca38e201e Mon Sep 17 00:00:00 2001 From: Liosha84 Date: Wed, 28 Oct 2026 23:50:23 +0100 Subject: [PATCH] Fix: use GITHUB_OUTPUT instead of GITEA_OUTPUT in CI/CD workflow Gitea Actions uses GITHUB_OUTPUT to set step outputs, not GITEA_OUTPUT. This was causing version and minor variables to be empty, so only the 'latest' tag was pushed to the registry. Added debug logging to help diagnose future issues. Co-authored-by: Junie --- .gitea/workflows/docker.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index a28a330..07255c4 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -21,13 +21,15 @@ jobs: - name: Extract version from tag id: version run: | - # Remove 'v' prefix from tag (e.g., v0.1.0 → 0.1.0) + # Remove 'refs/tags/v' prefix from tag (e.g., refs/tags/v0.1.0 → 0.1.0) VERSION=$(echo "${{ gitea.ref }}" | sed 's|refs/tags/v||') - echo "version=${VERSION}" >> "${GITEA_OUTPUT}" + echo "Extracted version: ${VERSION}" + echo "version=${VERSION}" >> "${GITHUB_OUTPUT}" # Extract major.minor for minor tag (e.g., 0.1.0 → 0.1) MINOR=$(echo "${VERSION}" | sed 's/\.[0-9]*$//') - echo "minor=${MINOR}" >> "${GITEA_OUTPUT}" + echo "Extracted minor: ${MINOR}" + echo "minor=${MINOR}" >> "${GITHUB_OUTPUT}" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3