From 0066619efbe54f086aa029bfb295fded4eff95d6 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 27 Jul 2021 23:02:15 +0200 Subject: [PATCH] Update --- .gitlab-ci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fff9087..4063ea9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,16 +10,11 @@ docker-build: image: docker:stable stage: build script: - - docker pull registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot-builder:latest || true - docker pull registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest || true + - docker build --cache-from registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest -t TwitchBot:latest . - - docker build --cache-from registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot-builder:latest --target builder -t hello-builder:latest . - - docker build --cache-from registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest --cache-from registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot-builder:latest -t hello:latest . + - docker tag TwitchBot:latest registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA} + - docker tag TwitchBot:latest registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest - - docker tag hello-builder:latest registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot-builder:latest - - docker tag hello:latest registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA} - - docker tag hello:latest registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest - - - docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot-builder:latest - docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA} - docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest