Commit c0357f0d authored by Clément AUBIN's avatar Clément AUBIN

Merge branch 'feature/ci' into 'master'

Improve CI

See merge request !4
parents 5903ea1f cdcb6645
......@@ -4,7 +4,6 @@ before_script:
stages:
- build
- package
- deploy
build:app:
......@@ -16,22 +15,10 @@ build:app:
paths:
- output/
package:archive:
stage: package
dependencies:
- build:app
only:
- master
script:
- tar cvzf atilla-org.tar.gz output
artifacts:
paths:
- atilla-org.tar.gz
deploy:prod:
stage: deploy
dependencies:
- package:archive
- build:app
environment:
name: production
url: https://atilla.org
......@@ -40,5 +27,4 @@ deploy:prod:
script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRODUCTION_PRIVATE_KEY")
- scp atilla-org.tar.gz atilla@webstatic-prod.prod.infra.atilla.org:~/
- ssh -t atilla@webstatic-prod.prod.infra.atilla.org "tar -xf atilla-org.tar.gz"
- rsync --checksum --recursive --delete --delete-during --itemize-changes --verbose output/ atilla@webstatic-prod.prod.infra.atilla.org:~/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment