Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606876052-practice
Commits
64d54e46
Commit
64d54e46
authored
Dec 23, 2019
by
Rayza Arasj Mahardhika
Browse files
add deploy pipeline
parent
f54e2f33
Pipeline
#28306
passed with stages
in 13 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
64d54e46
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment