Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit caeac20a authored by Alfina Megasiwi's avatar Alfina Megasiwi
Browse files

add gitlab-ci file

parent 32a6e09c
No related tags found
1 merge request!1Log implementation
image: python:3.8
stages:
- deploy
Deployment:
rules:
- if: '$CI_COMMIT_REF_NAME == "main"'
image: ruby:2.7
stage: deploy
before_script:
- gem install dpl
- wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
script:
- dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_API_KEY
- heroku run --app $HEROKU_APP_NAME migrate
environment:
name: production
url: https://$HEROKU_APP_NAME.herokuapp.com
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment