From 2421efe706fcfeeda193a6a594511a16db1ae8d0 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Tue, 3 Nov 2026 23:10:31 -0800 Subject: [PATCH] ci: install node in the job containers so actions/checkout can run (#8) --- .gitea/workflows/build.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 25f19c4..73e40f1 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -8,8 +8,8 @@ name: build # daemon keeps that contract and means a knox change needs no registry # credentials at all. # -# Images are Debian-based on purpose: act_runner injects a glibc Node into the -# job container to run JS actions (actions/checkout), which fails on musl. +# act_runner runs JS actions (actions/checkout) with whatever `node` is on the +# job container's PATH, so each job installs one before checkout. # # Deployment stays with tf-net: this workflow only makes the new image available # and restarts the stack when the app is already installed. @@ -33,8 +33,10 @@ jobs: test: runs-on: ubuntu-latest container: - image: golang:1.27 + image: golang:1.27-alpine steps: + - name: Install node for JS actions + run: apk add --no-cache nodejs - uses: actions/checkout@v4 - run: go vet ./... && go test ./... @@ -42,7 +44,7 @@ jobs: needs: test runs-on: ubuntu-latest container: - image: golang:1.27 + image: docker:27-cli # Whitelisted in the runner config (valid_volumes): the host daemon and # the CasaOS app directory where compose files live. volumes: @@ -51,13 +53,12 @@ jobs: env: IMAGE: docker.notsosm.art/knox steps: + - name: Install node for JS actions + run: apk add --no-cache nodejs git - uses: actions/checkout@v4 - - name: Install docker CLI - run: | - apt-get update -qq - apt-get install -y -qq --no-install-recommends docker.io >/dev/null - docker version --format '{{.Server.Version}}' + - name: Check the daemon + run: docker version --format '{{.Server.Version}}' - name: Build image on the host daemon run: |