Files
tp/.gitea/workflows/deploy.yml
T

24 lines
471 B
YAML

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Pull latest main
run: |
cd /home/gaziz/artefacts/tp
git pull origin main
- name: Rebuild changed services
run: |
cd /home/gaziz/artefacts/tp/main_dc
docker compose build
docker compose up -d --remove-orphans
- name: Cleanup old images
run: docker image prune -f