Files
web_server/.gitea/workflows/deploy.yaml
Adam French bfefbb1d2a
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 7s
Skip SSH host key check for localhost in deploy workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 13:24:15 +01:00

27 lines
835 B
YAML

name: Deploy with Docker Compose
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Pull changes
working-directory: /home/adamf/deploy/web_server
env:
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
run: |
git config --global --add safe.directory /home/adamf/deploy/web_server
git pull ssh://git@localhost:2222/adamf/web_server.git main
- name: Run docker compose up
working-directory: /home/adamf/deploy/web_server
env:
DOCKER_API_VERSION: "1.41"
run: docker compose up -d --build --remove-orphans
- name: Prune unused Docker resources
run: docker image prune -f