Skip to content
Snippets Groups Projects
Commit a3878aed authored by Pernille Nødtvedt Welle-Watne's avatar Pernille Nødtvedt Welle-Watne
Browse files

Update .gitlab-ci.yml

parent e784606b
No related branches found
No related tags found
1 merge request!3Uc2 suggested workout frontend og backend
Pipeline #113390 failed
variables:
HEROKU_APP_NAME: tdt4242-base
HEROKU_REGISTRY_IMAGE: registry.heroku.com/${HEROKU_APP_NAME}/web
HEROKU_APP_NAME_BACKEND: tdt4242-base
HEROKU_APP_NAME_FRONTEND: tdt4242-base-secfit
stages:
# - test
- deploy
- deploy_backend
- deploy_frontend
#test:
# image: python:3
......@@ -16,12 +17,22 @@ stages:
# - pip install -r requirements.txt
# - python manage.py test
deploy:
deploy_backend:
image: ruby
stage: deploy
stage: deploy_backend
type: deploy
script:
- apt-get update -qy
- apt-get install -y ruby ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_AUTH_TOKEN
\ No newline at end of file
- dpl --provider=heroku --app=$HEROKU_APP_NAME_BACKEND --api-key=$HEROKU_AUTH_TOKEN_BACKEND
deploy_frontend:
image: ruby
stage: deploy_frontend
type: deploy
script:
- apt-get update -qy
- apt-get install -y ruby ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_APP_NAME_FRONTEND --api-key=$HEROKU_AUTH_TOKEN_FRONTEND
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment