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

Update .gitlab-ci.yml

parent ca970c62
No related branches found
No related tags found
4 merge requests!9Error 1,!7Boundary tests,!6Task 2 coverage test,!5Task 2 coverage test
variables: variables:
HEROKU_APP_NAME: tdt4242-base HEROKU_APP_NAME: tdt4242-base
HEROKU_REGISTRY_IMAGE: registry.heroku.com/${HEROKU_APP_NAME}/web HEROKU_REGISTRY_IMAGE: registry.heroku.com/${HEROKU_APP_NAME}/web
stages: stages:
- test - test
- build - deploy
- release
test: test:
image: python:3 image: python:3
...@@ -16,29 +16,12 @@ test: ...@@ -16,29 +16,12 @@ test:
- pip install -r requirements.txt - pip install -r requirements.txt
- python manage.py test - python manage.py test
image: deploy:
name: docker/compose:latest stage: deploy
services: variables:
- docker:dind HEROKU_APP_NAME: tdt4242-base
before_script:
- docker version
- docker-compose version
build:
stage: build
script: script:
- apk add --no-cache docker-compose - apt-get update -qy
- docker-compose up -d - apt-get install -y ruby-dev
- gem install dpl
release: - dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_AUTH_TOKEN
only:
- master
image: node:10.17-alpine
stage: release
before_script:
- apk add curl bash
- curl https://cli-assets.heroku.com/install.sh | sh
script:
- heroku container:release -a tdt4242-base web
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