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:
|
steps:
|
||||||
- name: Clone repository (base image, no Node.js required)
|
- name: Clone repository (base image, no Node.js required)
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://forgejo.riotpiao.com/rock/homelab.git /workspace
|
git clone --depth 1 https://forgejo.riotpiao.com/rock/homelab.git .
|
||||||
cd /workspace
|
|
||||||
|
|
||||||
- name: Get commit SHA
|
- name: Get commit SHA
|
||||||
id: sha
|
id: sha
|
||||||
run: |
|
run: |
|
||||||
cd /workspace
|
|
||||||
SHORT_SHA=$(git rev-parse --short HEAD)
|
SHORT_SHA=$(git rev-parse --short HEAD)
|
||||||
echo "short_sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
|
echo "short_sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
|
||||||
echo "Got SHA: ${SHORT_SHA}"
|
echo "Got SHA: ${SHORT_SHA}"
|
||||||
|
|
||||||
- name: Build all runner images (test on PR, push on main)
|
- name: Build all runner images (test on PR, push on main)
|
||||||
run: |
|
run: |
|
||||||
cd /workspace
|
|
||||||
set -e
|
set -e
|
||||||
for RUNNER in golang rust node; do
|
for RUNNER in golang rust node; do
|
||||||
echo "📦 Building ${RUNNER}-runner..."
|
echo "📦 Building ${RUNNER}-runner..."
|
||||||
|
|||||||
Reference in New Issue
Block a user