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