Skip to content
Snippets Groups Projects
Commit 6b660e15 authored by Vegard Murvold Sporstøl's avatar Vegard Murvold Sporstøl
Browse files

Update .gitlab-ci.yml file

parent ee5a6c4c
No related branches found
No related tags found
2 merge requests!3Merge new master to dev,!2Uc 2
Pipeline #113012 failed
image: docker:stable
image: python:3
stages:
- test
- build
- deploy
test:
stage: test
script:
- cd backend/secfit
- apt-get update -qy
- pip install -r requirements.txt
- python manage.py test
build:
image: docker:19.03.12
stage: build
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
services:
- docker:19.03.12-dind
script:
- docker build --pull -t https://gitlab.stud.idi.ntnu.no/vegarms/tdt4242-base
- docker run https://gitlab.stud.idi.ntnu.no/vegarms/tdt4242-base
deploy:
stage: deploy
script:
- docker-compose build
\ No newline at end of file
- apt-get update -yq
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=secfit-group15 --api_key=$HEROKU_API_KEY
only:
- master
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