fix(ci): repair failing Gitea Actions (validate-flux + build-docs) #243
@@ -78,6 +78,22 @@ jobs:
|
||||
working-directory: api-company/docs-site
|
||||
run: npm run build
|
||||
|
||||
- name: Install Docker CLI
|
||||
# The job container (node:20) ships no `docker` binary. The runner has a
|
||||
# dind daemon (dind.enabled in the runner HelmRelease), reachable via
|
||||
# DOCKER_HOST, so we only need the client. Install the static binary.
|
||||
env:
|
||||
DOCKER_CLI_VERSION: "27.3.1"
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
curl -fSL --retry 5 --retry-delay 3 --retry-all-errors \
|
||||
-o /tmp/docker.tgz \
|
||||
"https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_CLI_VERSION}.tgz"
|
||||
tar -xzf /tmp/docker.tgz -C /tmp
|
||||
install -m 0755 /tmp/docker/docker /usr/local/bin/docker
|
||||
docker version --format '{{.Client.Version}}'
|
||||
docker info >/dev/null # confirms the dind daemon is reachable
|
||||
|
||||
- name: Log in to container registry
|
||||
run: |
|
||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login registry.leeworks.dev \
|
||||
|
||||
Reference in New Issue
Block a user