ci: clone to current directory (fix 'already exists' error)
Build and push runner images / build-runners (pull_request) Failing after 7s
Build and push runner images / build-runners (pull_request) Failing after 7s
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user