Commit 520558fa authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent aae46967
Pipeline #10720 failed with stages
in 42 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment