Fix image-build: static docker-cli for non-root runner
Some checks failed
/ container-probe (push) Successful in 1s
Image Build Probe / image-build (push) Failing after 1s
/ probe (push) Successful in 0s

This commit is contained in:
forgejo_admin 2026-07-03 22:39:53 +00:00
parent 7f7c3e1ebf
commit cc12a1270f

View file

@ -19,11 +19,13 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install docker CLI - name: Install docker CLI (static binary)
run: | run: |
set -eu set -eu
apk add --no-cache docker-cli mkdir -p "${HOME}/bin"
docker version wget -qO- https://download.docker.com/linux/static/stable/x86_64/docker-27.3.1.tgz | tar xz --strip-components=1 -C "${HOME}/bin" docker/docker
echo "${HOME}/bin" >> "${GITHUB_PATH}"
"${HOME}/bin/docker" version
- name: Login to Forgejo registry - name: Login to Forgejo registry
run: | run: |