From eb2b154bf4dc019c38ba5fccf7cdb6f830abfc0e Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 21 May 2026 21:48:38 +0200 Subject: [PATCH] ci: fetch source without node-based checkout action --- .gitea/workflows/release-container.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release-container.yml b/.gitea/workflows/release-container.yml index a1e43ec..a91a82c 100644 --- a/.gitea/workflows/release-container.yml +++ b/.gitea/workflows/release-container.yml @@ -14,8 +14,22 @@ jobs: name: Build and push image runs-on: linux_amd64 steps: - - name: Check out repository - uses: actions/checkout@v4 + - name: Fetch tagged source + id: checkout + shell: bash + run: | + set -euo pipefail + repo_url="${GITHUB_SERVER_URL:-http://192.168.33.22:3300}/gemma/arcana-fx.git" + tag="${GITHUB_REF_NAME:-${GITEA_REF_NAME:-}}" + workdir="$(mktemp -d)" + + if [ -z "$tag" ]; then + echo "missing tag name in workflow environment" >&2 + exit 1 + fi + + git clone --depth 1 --branch "$tag" "$repo_url" "$workdir/repo" + echo "dir=$workdir/repo" >> "$GITHUB_OUTPUT" - name: Derive image coordinates id: meta @@ -49,7 +63,7 @@ jobs: docker build \ --tag "${{ steps.meta.outputs.image }}:${{ steps.meta.outputs.tag }}" \ --tag "${{ steps.meta.outputs.image }}:latest" \ - . + "${{ steps.checkout.outputs.dir }}" - name: Push image tags shell: bash