Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 1s
- Untrack .runner (contains registration token), act_runner binary, and nohup.out - Add gitea-runner sensitive files to .gitignore - Auto-register runner from env var if .runner is missing - Switch deploy workflow git pull from HTTP to SSH Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
743 B
YAML
25 lines
743 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
|
|
run: |
|
|
git config --global --add safe.directory /home/adamf/deploy/web_server
|
|
git pull ssh://git@gitea: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
|