Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 28193135 authored by annisadevin's avatar annisadevin
Browse files

Update scripts staging gitlab-ci

parent 8d5e8ea8
No related branches found
No related tags found
No related merge requests found
Pipeline #123183 failed
...@@ -2,21 +2,24 @@ stages: ...@@ -2,21 +2,24 @@ stages:
- test - test
- staging - staging
test: # test:
image: node:latest # image: node:latest
stage: test # stage: test
script: # script:
- npm install # - npm install
- npm run test # - npm run test
only: # only:
- master # - master
staging: staging:
stage: staging stage: staging
script: before_script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl - gem install dpl
- dpl --provider=heroku --app=${HEROKU_APP_NAME} --api-key=${HEROKU_API_KEY} - wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
only: script:
- master - 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