Files
passepartout/.gitea/workflows/deploy.yml

36 lines
1.2 KiB
YAML

name: Deploy-Agent-V11-HostSocket
on:
push:
branches:
- main
jobs:
JOB-V11-HOST-DAEMON:
runs-on: debian-latest
steps:
- name: Deploy via Host Docker Socket
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..."
# We use -f for the config and --project-directory to set the build context
# to the real path on your LXC (/memex).
docker compose \
-f /memex/projects/org-agent/deploy/docker/docker-compose.yml \
--project-directory /memex/projects/org-agent \
down
docker compose \
-f /memex/projects/org-agent/deploy/docker/docker-compose.yml \
--project-directory /memex/projects/org-agent \
build --no-cache org-agent
docker compose \
-f /memex/projects/org-agent/deploy/docker/docker-compose.yml \
--project-directory /memex/projects/org-agent \
up -d --force-recreate org-agent