ci: fetch source without node-based checkout action
All checks were successful
Publish container image / Build and push image (push) Successful in 4s

This commit is contained in:
Hermes Agent
2026-05-21 21:48:38 +02:00
parent 5cb3a156f0
commit eb2b154bf4

View File

@@ -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