ci(release): install static docker CLI on amd64 jobs
All checks were successful
ci / test (pull_request) Successful in 3m48s
All checks were successful
ci / test (pull_request) Successful in 3m48s
The docker-amd64 runner's node:20-bullseye job image has no docker binary (Pi jobs get one via the host socket mount). Fetch the upstream static CLI so the rust:1.91-bookworm sibling build can run.
This commit is contained in:
parent
4a248f5b73
commit
951439d7e2
1 changed files with 15 additions and 0 deletions
|
|
@ -221,6 +221,21 @@ jobs:
|
||||||
- name: Show runner arch
|
- name: Show runner arch
|
||||||
run: uname -m && echo "target=$TARGET"
|
run: uname -m && echo "target=$TARGET"
|
||||||
|
|
||||||
|
- name: Ensure docker CLI (amd64 dind job image has none)
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if ! command -v docker >/dev/null 2>&1; then
|
||||||
|
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-27.3.1.tgz \
|
||||||
|
| tar xz -C /tmp
|
||||||
|
install -m 755 /tmp/docker/docker /usr/local/bin/docker
|
||||||
|
fi
|
||||||
|
docker version
|
||||||
|
if [ ! -S /var/run/docker.sock ]; then
|
||||||
|
echo "docker.sock is not mounted into the job container" >&2
|
||||||
|
ls -l /var/run || true
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build ${{ env.TARGET }} in a rust container
|
- name: Build ${{ env.TARGET }} in a rust container
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue