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

Add CI

parent fd72c34d
before_script:
- id
- pwd
stages:
- build
- deploy
build_app:
stage: build
script:
- npm install
- node_modules/punch/bin/punch g
build_archive:
stage: build
dependencies:
- build_app
only:
- master
script:
- tar cvzf atilla-org.tar.gz output
deploy_prod:
stage: deploy
dependencies:
- build_archive
environment:
name: production
url: https://atilla.org
only:
- master
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"
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