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:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
image: docker:19.03.0
test-job1:
stage: test
script:
- echo "This job tests something"
services:
- docker:19.03.0-dind
test-job2:
stage: test
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
variables:
DOCKER_DRIVER: overlay
deploy-prod:
stage: deploy
stages:
- build
before_script:
- docker info
docker_build:
stage: build
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