Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KNIGHT
Asyst Moodle Plugin
Commits
162dc1f3
Commit
162dc1f3
authored
Jan 05, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
9ac0e0bb
Changes
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
162dc1f3
...
@@ -27,16 +27,15 @@ variables:
...
@@ -27,16 +27,15 @@ variables:
build
:
build
:
image
:
docker:latest
image
:
docker:latest
stage
:
build
services
:
services
:
-
docker:dind
-
name
:
docker:dind
command
:
[
"
--tls=false"
,
"
--storage-driver=overlay2"
,
"
--mtu=1500"
,
"
--data-root=/mnt/volume"
]
script
:
script
:
-
echo "Building the Flask project"
-
echo "Building the Flask project"
-
docker build -t $DOCKER_REPO:flask .
-
docker build -t $DOCKER_REPO:flask .
containerize
:
containerize
:
image
:
docker:latest
image
:
docker:latest
stage
:
containerize
services
:
services
:
-
docker:dind
-
docker:dind
script
:
script
:
...
@@ -45,8 +44,7 @@ containerize:
...
@@ -45,8 +44,7 @@ containerize:
-
docker push $DOCKER_REPO:flask
-
docker push $DOCKER_REPO:flask
deploy
:
deploy
:
image
:
docker:latest
image
:
docker:dind
stage
:
deploy
services
:
services
:
-
docker:dind
-
docker:dind
script
:
script
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment