Fix image-build: static docker-cli for non-root runner
This commit is contained in:
parent
7f7c3e1ebf
commit
cc12a1270f
1 changed files with 5 additions and 3 deletions
|
|
@ -19,11 +19,13 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install docker CLI
|
||||
- name: Install docker CLI (static binary)
|
||||
run: |
|
||||
set -eu
|
||||
apk add --no-cache docker-cli
|
||||
docker version
|
||||
mkdir -p "${HOME}/bin"
|
||||
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
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue