add mage
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/deployment/deploy Pipeline was successful

This commit is contained in:
Simon Vieille 2023-11-03 22:09:22 +01:00
parent 0f4eb0b591
commit d6917efc8c
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 29 additions and 55 deletions

View file

@ -1,54 +0,0 @@
magephp:
environments:
prod:
user: suivi_intervention_prod
from: ./
to: /home/suivi_intervention_prod/app
host_path: /home/suivi_intervention_prod/app
rsync: '-avz --delete'
exclude:
- "/.git"
- "*.swp"
- "*.swo"
- "/.env.local"
- "/data"
- "/migrations/*"
- "/public/uploads/"
- "/public/files/"
- "/var/cache/*"
- "/var/log/*"
- "/var/data.db"
- "/public/js/fos_js_routes.json"
- "/public/build"
- "/public/media"
hosts:
- chat.tinternet.deblan.org
on-deploy:
- exec: { cmd: 'make clean', desc: 'cache' }
- exec: { cmd: 'test -f .build && make build || true', desc: 'build' }
oldprod:
user: webtinternetsuiviinter
from: ./
to: /var/www/service-web/www/suivi-interventions.tinternet.net/app/
host_path: /var/www/service-web/www/suivi-interventions.tinternet.net/app/
rsync: '-avz --delete'
exclude:
- "/.git"
- "*.swp"
- "*.swo"
- "/.env.local"
- "/data"
- "/migrations/*"
- "/public/uploads/"
- "/public/files/"
- "/var/cache/*"
- "/var/log/*"
- "/var/data.db"
- "/public/js/fos_js_routes.json"
- "/public/build"
- "/public/media"
hosts:
- deblan.fr
on-deploy:
- exec: { cmd: 'make clean', desc: 'cache' }
- exec: { cmd: 'test -f .build && make build || true', desc: 'build' }

28
.mage.yml.dist Normal file
View file

@ -0,0 +1,28 @@
magephp:
environments:
prod:
user: ssh_user
from: ./
to: /home/ssh_user/app
host_path: /home/ssh_user/app
rsync: '-avz --delete'
exclude:
- "/.git"
- "*.swp"
- "*.swo"
- "/.env.local"
- "/data"
- "/migrations/*"
- "/public/uploads/"
- "/public/files/"
- "/var/cache/*"
- "/var/log/*"
- "/var/data.db"
- "/public/js/fos_js_routes.json"
- "/public/build"
- "/public/media"
hosts:
- ssh_host
on-deploy:
- exec: { cmd: 'make clean', desc: 'cache' }
- exec: { cmd: 'test -f .build && make build || true', desc: 'build' }

View file

@ -1,6 +1,6 @@
variables:
- &volumes
- /data/deblan/deblan.io-murph:/builds
- /data/${CI_REPO}:/builds
when:
event: [deployment]