Update
This commit is contained in:
parent
bc6b34a00e
commit
0066619efb
1 changed files with 3 additions and 8 deletions
|
@ -10,16 +10,11 @@ docker-build:
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker pull registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot-builder:latest || true
|
|
||||||
- docker pull registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot: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 tag TwitchBot:latest registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA}
|
||||||
- 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: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:${CI_COMMIT_SHORT_SHA}
|
||||||
- docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest
|
- docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest
|
||||||
|
|
Loading…
Reference in a new issue