Skip to content
Snippets Groups Projects
.gitlab-ci.yml 606 B
Newer Older
hollum's avatar
yml
hollum committed
stages:
    - test
    - staging

test:
  image: python:3.8
  stage: test
  script:
hollum's avatar
hollum committed
  # this configures Django application to use attached postgres database that is run on `postgres` hostsdsss
hollum's avatar
yml
hollum committed
    - cd backend/secfit
    - apt-get update -qy
    - pip install -r requirements.txt

staging:
  type: deploy
  image: ruby
  stage: staging
  script:
    - apt-get update -qy
    - apt-get install -y ruby-dev
    - gem install dpl
    - dpl --provider=heroku --app=tdt4242-base-frontend --api-key=$HEROKU_STAGING_API_KEY
    - dpl --provider=heroku --app=tdt4242-base-backend --api-key=$HEROKU_STAGING_API_KEY