fix(ci): manual git checkout (job image has no node)
Some checks failed
build-and-deploy / build-deploy (push) Failing after 1s
Some checks failed
build-and-deploy / build-deploy (push) Failing after 1s
This commit is contained in:
parent
04461a10e5
commit
2b3cb0e8e7
1 changed files with 7 additions and 3 deletions
|
|
@ -18,10 +18,14 @@ jobs:
|
|||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
steps:
|
||||
# Manual git checkout instead of actions/checkout@v4: the job image
|
||||
# (docker:27-cli, from the k8s-arm64 runner label) has no Node.js, so JS
|
||||
# actions fail with "exec: node: not found". Plain git needs only what the
|
||||
# image already has (git + docker) and avoids pulling a heavy act image.
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
run: |
|
||||
git clone -q -b "${GITHUB_REF_NAME:-main}" \
|
||||
"http://ci:${{ secrets.FORGEJO_TOKEN }}@forgejo.forgejo.svc/${{ github.repository }}.git" .
|
||||
|
||||
- name: Short SHA
|
||||
id: sha
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue