Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
idatt2106_2024_02_frontend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
IDATT2106 - Gruppe 2
idatt2106_2024_02_frontend
Commits
704369ee
Commit
704369ee
authored
10 months ago
by
Yasin Ali Marouga
Browse files
Options
Downloads
Patches
Plain Diff
chore: implement deployment to docker hub
parent
d745cf50
Branches
enhancement/47/general-cleanup
Branches containing commit
No related tags found
2 merge requests
!66
Final merge
,
!60
chore: implement deployment to docker hub
Pipeline
#284726
passed with stages
in 8 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-1
19 additions, 1 deletion
.gitlab-ci.yml
with
19 additions
and
1 deletion
.gitlab-ci.yml
+
19
−
1
View file @
704369ee
...
...
@@ -6,6 +6,7 @@ stages:
-
build
-
test
-
security_scan
-
deploy
cache
:
key
:
${CI_COMMIT_REF_SLUG}
...
...
@@ -62,4 +63,21 @@ include:
sast
:
stage
:
security_scan
script
:
-
echo "Running SAST..."
\ No newline at end of file
-
echo "Running SAST..."
deploy
:
stage
:
deploy
image
:
docker:latest
tags
:
-
dind
services
:
-
name
:
docker:dind
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_IMAGE_NAME
:
$CI_REGISTRY_USER/idatt2106_2024_02_frontend-app
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_HOST
:
tcp://docker:2375
script
:
-
echo "$CI_REGISTRY_PASSWORD" | docker login --username $CI_REGISTRY_USER --password-stdin
-
docker build -t $DOCKER_IMAGE_NAME:latest .
-
docker push $DOCKER_IMAGE_NAME:latest
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