fix(ci): install docker CLI in build-docs before registry steps
Validate Flux manifests / kustomize-build (pull_request) Successful in 22s
Validate Flux manifests / kustomize-build (pull_request) Successful in 22s
This commit is contained in:
@@ -78,6 +78,22 @@ jobs:
|
|||||||
working-directory: api-company/docs-site
|
working-directory: api-company/docs-site
|
||||||
run: npm run build
|
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
|
- name: Log in to container registry
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login registry.leeworks.dev \
|
echo "${{ secrets.GITEA_TOKEN }}" | docker login registry.leeworks.dev \
|
||||||
|
|||||||
Reference in New Issue
Block a user