diff options
author | 2018-06-07 15:39:04 +0100 | |
---|---|---|
committer | 2018-06-07 15:39:04 +0100 | |
commit | 6cdcae62df36deeecd3f6da89a59f43f58455ff5 (patch) | |
tree | 9deff0c9b3b0791151e1355e715658bfdc03ced8 /.gitlab-ci.yml | |
parent | Remove some debug code from the button directive (diff) |
[CI] Add deployment env and cache .gem
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9ada33d1..4308bb11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,7 +19,7 @@ before_script: stages: - test - - build + - deploy test: tags: @@ -36,6 +36,7 @@ test: cache: paths: - ".venv" + - ".gem" script: - apk add --update ruby ruby-dev ruby-rdoc ruby-irb @@ -47,14 +48,18 @@ test: - pipenv run python gunicorn_config.py - pipenv run test -build: +deploy: tags: - docker services: - docker:dind - stage: build + stage: deploy script: - apk add docker curl - sh scripts/deploy.sh + + environment: + name: Production + url: https://pythondiscord.com
\ No newline at end of file |