Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDT4242-group15
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vegard Murvold Sporstøl
TDT4242-group15
Commits
66eb4440
Commit
66eb4440
authored
4 years ago
by
Irina Kera Gundersen
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.stud.idi.ntnu.no/vegarms/tdt4242-base
parents
5ff34404
ba369d46
No related branches found
No related tags found
2 merge requests
!3
Merge new master to dev
,
!2
Uc 2
Pipeline
#110952
failed
4 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+23
-18
23 additions, 18 deletions
.gitlab-ci.yml
with
23 additions
and
18 deletions
.gitlab-ci.yml
+
23
−
18
View file @
66eb4440
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment