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
520558fa
Commit
520558fa
authored
Jan 05, 2025
by
Artem Baranovskyi
Browse files
Image build is optimized.
parent
aae46967
Pipeline
#10720
failed with stages
in 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
520558fa
...
...
@@ -24,7 +24,7 @@ variables:
DOCKER_MEMORY
:
"
4g"
DOCKER_CPUS
:
"
2"
build
-job
:
build
:
image
:
docker:latest
stage
:
build
services
:
...
...
@@ -33,7 +33,7 @@ build-job:
-
echo "Building the Flask project"
-
docker build -t $DOCKER_REPO:flask .
containerize
-job
:
containerize
:
image
:
docker:latest
stage
:
containerize
services
:
...
...
@@ -43,7 +43,7 @@ containerize-job:
-
docker login -u $DOCKER_USER -p $DOCKER_PW
-
docker push $DOCKER_REPO:flask
deploy
-job
:
deploy
:
image
:
docker:latest
stage
:
deploy
services
:
...
...
@@ -62,8 +62,4 @@ deploy-job:
sudo docker rm flask-container ||
true
sudo docker pull $DOCKER_REPO:flask
sudo docker run --name flask-container -d -p 5000:5000 $DOCKER_REPO:flask
"
artifacts
:
paths
:
-
build/
\ No newline at end of file
"
\ No newline at end of file
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