ci: version 12 - install docker cli in runner environment
This commit is contained in:
@@ -1,23 +1,24 @@
|
|||||||
name: Deploy-Agent-V11-HostSocket
|
name: Deploy-Agent-V12-InstallDocker
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
JOB-V11-HOST-DAEMON:
|
JOB-V12-DOCKER-CLI:
|
||||||
runs-on: debian-latest
|
runs-on: debian-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Docker CLI
|
||||||
|
run: |
|
||||||
|
echo "Installing Docker CLI..."
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y docker.io docker-compose-v2
|
||||||
|
|
||||||
- name: Deploy via Host Docker Socket
|
- name: Deploy via Host Docker Socket
|
||||||
run: |
|
run: |
|
||||||
# VERSION 11 - THE HOST-SOCKET STRATEGY
|
|
||||||
# We don't 'cd' inside the runner because the runner doesn't have the mount.
|
|
||||||
# Instead, we tell the HOST'S Docker to build using the HOST'S paths.
|
|
||||||
|
|
||||||
echo "Sending build command to host Docker daemon..."
|
echo "Sending build command to host Docker daemon..."
|
||||||
|
|
||||||
# We use -f for the config and --project-directory to set the build context
|
# We use the absolute path /memex which both the runner and host understand
|
||||||
# to the real path on your LXC (/memex).
|
|
||||||
|
|
||||||
docker compose \
|
docker compose \
|
||||||
-f /memex/projects/org-agent/deploy/docker/docker-compose.yml \
|
-f /memex/projects/org-agent/deploy/docker/docker-compose.yml \
|
||||||
|
|||||||
Reference in New Issue
Block a user