ci: clone to current directory (fix 'already exists' error)
Build and push runner images / build-runners (pull_request) Failing after 7s

This commit is contained in:
2026-09-06 06:53:12 -07:00
parent fda701ca45
commit 269c5c8202
+1 -4
View File
@@ -24,20 +24,17 @@ jobs:
steps:
- name: Clone repository (base image, no Node.js required)
run: |
git clone --depth 1 https://forgejo.riotpiao.com/rock/homelab.git /workspace
cd /workspace
git clone --depth 1 https://forgejo.riotpiao.com/rock/homelab.git .
- name: Get commit SHA
id: sha
run: |
cd /workspace
SHORT_SHA=$(git rev-parse --short HEAD)
echo "short_sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
echo "Got SHA: ${SHORT_SHA}"
- name: Build all runner images (test on PR, push on main)
run: |
cd /workspace
set -e
for RUNNER in golang rust node; do
echo "📦 Building ${RUNNER}-runner..."