fix: install Docker CLI in build-and-push job
Some checks failed
Basil CI/CD Pipeline / Code Linting (push) Successful in 57s
Basil CI/CD Pipeline / API Tests (push) Successful in 1m19s
Basil CI/CD Pipeline / Web Tests (push) Successful in 1m10s
Basil CI/CD Pipeline / Shared Package Tests (push) Successful in 55s
Basil CI/CD Pipeline / Security Scanning (push) Successful in 1m7s
Basil CI/CD Pipeline / Build All Packages (push) Successful in 1m34s
Basil CI/CD Pipeline / E2E Tests (push) Has been skipped
Basil CI/CD Pipeline / Build & Push Docker Images (push) Failing after 31s
Basil CI/CD Pipeline / Trigger Deployment (push) Has been skipped

The Harbor login was failing with:
  Unable to locate executable file: docker

Gitea Actions runners have the Docker socket mounted at
/var/run/docker.sock, but the Docker CLI binary isn't installed in
the default ubuntu-latest container.

Solution:
- Download Docker CLI static binary from Docker's official repository
- Extract to /tmp/docker-cli
- Add to PATH for subsequent steps
- This allows docker/login-action and docker/build-push-action to work

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-15 17:52:17 +00:00
parent ffdb388340
commit 28145d0022

View File

@@ -297,6 +297,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Docker CLI
run: |
mkdir -p /tmp/docker-cli
curl -fsSL "https://download.docker.com/linux/static/stable/x86_64/docker-24.0.7.tgz" | tar -xz -C /tmp/docker-cli --strip-components=1
export PATH="/tmp/docker-cli:$PATH"
echo "/tmp/docker-cli" >> $GITHUB_PATH
docker --version
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3