20 lines
707 B
YAML
20 lines
707 B
YAML
stages:
|
|
- build
|
|
- test
|
|
- deploy
|
|
|
|
services:
|
|
- docker:stable-dind
|
|
|
|
docker-build:
|
|
image: docker:stable
|
|
stage: build
|
|
script:
|
|
- docker pull registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest || true
|
|
- docker build --cache-from registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest -t TwitchBot: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 push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA}
|
|
- docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:latest
|