Skip to content
Snippets Groups Projects
Commit 66eb4440 authored by Irina Kera Gundersen's avatar Irina Kera Gundersen
Browse files
parents 5ff34404 ba369d46
No related branches found
No related tags found
2 merge requests!3Merge new master to dev,!2Uc 2
Pipeline #110952 failed
build-job: image: docker:19.03.0
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
test-job1: services:
stage: test - docker:19.03.0-dind
script:
- echo "This job tests something"
test-job2: variables:
stage: test DOCKER_DRIVER: overlay
script:
- echo "This job tests something, but takes more time than test-job1."
- echo "After the echo commands complete, it runs the sleep command for 20 seconds"
- echo "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20
deploy-prod: stages:
stage: deploy - build
before_script:
- docker info
docker_build:
stage: build
script: script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch." - apk add --no-cache curl
- docker login -u _ -p $HEROKU_TOKEN registry.heroku.com
- docker pull registry.heroku.com/secfit-group15/web || true
- docker build
--cache-from registry.heroku.com/secfit-group15/web
--tag registry.heroku.com/secfit-group15/web
--file ./Dockerfile
"."
- docker push registry.heroku.com/secfit-group15/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