From cc02351437b99b362d41dcc230bdf47c88b63fe0 Mon Sep 17 00:00:00 2001 From: Flavio Fois Date: Mon, 23 Mar 2026 11:14:18 +0100 Subject: [PATCH] update gitea docker workflow for environment compatibility and registry caching Switch to GITEA_OUTPUT and transition Docker caching from type=gha to type=registry to better support the Gitea Actions environment. The runner is also pinned to ubuntu-24.04 for consistency. --- .gitea/workflows/docker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index d6cc0b4..2378872 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -9,7 +9,7 @@ on: jobs: build-and-push: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout @@ -20,8 +20,8 @@ jobs: id: reg run: | host=$(echo "${{ gitea.server_url }}" | sed 's|https://||;s|http://||;s|/||g') - echo "host=$host" >> $GITHUB_OUTPUT - echo "image=$host/${{ gitea.repository }}" >> $GITHUB_OUTPUT + echo "host=$host" >> $GITEA_OUTPUT + echo "image=$host/${{ gitea.repository }}" >> $GITEA_OUTPUT - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -51,5 +51,5 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=registry,ref=${{ steps.reg.outputs.image }}:cache + cache-to: type=registry,ref=${{ steps.reg.outputs.image }}:cache,mode=max