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
|
- 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: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue