Fakultas Ilmu Komputer UI

Commit 64d54e46 authored by Rayza Arasj Mahardhika's avatar Rayza Arasj Mahardhika
Browse files

add deploy pipeline

parent f54e2f33
Pipeline #28306 passed with stages
in 13 minutes and 14 seconds
......@@ -2,6 +2,7 @@ image: alpine:latest
stages:
- test
- deploy
services:
- postgres:latest
......@@ -22,3 +23,17 @@ Testing:
script:
- coverage run --source=accounts,lists manage.py test
- coverage report -m
Deployment:
image: ruby:2.4
stage: deploy
before_script:
- gem install dpl
- wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
script:
- dpl --provider=heroku --app=$HEROKU_APPNAME --api-key=$HEROKU_APIKEY
- export HEROKU_API_KEY=$HEROKU_APIKEY
- heroku run --app $HEROKU_APPNAME migrate
environment:
name: production
url: $HEROKU_APP_HOST
Supports Markdown
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