Skip to content
Snippets Groups Projects
Commit fabaeb76 authored by Rolf Aas's avatar Rolf Aas
Browse files

Deploy to stage from develop

parent 96a38136
Branches testing/frontend
No related tags found
1 merge request!4Develop
Pipeline #113098 passed
......@@ -9,6 +9,9 @@ stages:
build-job:
stage: build
only:
- develop
- master
script:
- echo "Running build"
- cd backend/secfit
......@@ -18,6 +21,9 @@ build-job:
test-backend:
stage: test
only:
- develop
- master
script:
- echo "Running Django tests on backend"
- cd backend/secfit
......@@ -28,21 +34,37 @@ test-backend:
test-frontend:
stage: test
only:
- develop
- master
script:
- echo "This is a placeholder for testing the frontend"
deploy-stage:
image: ruby:latest
only:
- develop
stage: deploy
before_script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
script:
- echo "Deploying to Heroku stage"
- dpl --provider=heroku --app=$HEROKU_FRONTEND_APP_STAGE --api-key=$HEROKU_API_KEY
- dpl --provider=heroku --app=$HEROKU_BACKEND_APP_STAGE --api-key=$HEROKU_API_KEY
deploy-prod:
image: ruby:latest
only:
- master
- pipeline
stage: deploy
before_script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
script:
- echo "Deploying to Heroku"
- echo "Deploying to Heroku production"
- dpl --provider=heroku --app=$HEROKU_FRONTEND_APP_PRODUCTION --api-key=$HEROKU_API_KEY
- dpl --provider=heroku --app=$HEROKU_BACKEND_APP_PRODUCTION --api-key=$HEROKU_API_KEY
......
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