mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
23 lines
422 B
YAML
23 lines
422 B
YAML
name: Deploy Production
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Deploy on server
|
|
run: |
|
|
cd /srv/apps/Flint
|
|
|
|
echo "Pull latest code"
|
|
git pull origin main
|
|
|
|
echo "Build & restart containers"
|
|
docker compose up -d --build --remove-orphans
|
|
|
|
echo "Cleanup old images"
|
|
docker image prune -f |