fix docker command not found
All checks were successful
Deploy scraper-google / build (push) Successful in 16m15s
Deploy scraper-google / deploy (push) Successful in 20m7s

This commit is contained in:
Elshimy Ziad Magdy Taha 2026-07-10 11:54:48 +05:00
parent 5d10319df7
commit 29a3d5bdbb

View file

@ -33,6 +33,24 @@ jobs:
steps:
- uses: actions/checkout@v4
# node:22-bookworm has the Docker socket mounted but no docker binary,
# so `docker` is not found. Install the CLI + Compose plugin (no daemon;
# they talk to the host socket).
- name: Install Docker CLI + Compose plugin
run: |
set -eux
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable" \
> /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y --no-install-recommends docker-ce-cli docker-compose-plugin
docker --version
docker compose version
- name: Build & start scraper-google
working-directory: services/scraper-google
run: docker compose up -d --build