2021-07-27 22:51:52 +02:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
variables:
|
|
|
|
# disable Docker TLS validation
|
|
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
# localhost address is shared by both the job container and the dind container (as they share the same Pod)
|
|
|
|
# So this configuration make the dind service as our Docker daemon when running Docker commands
|
|
|
|
DOCKER_HOST: "tcp://localhost:2375"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker:stable-dind
|
|
|
|
|
|
|
|
docker-build:
|
|
|
|
image: docker:stable
|
2021-07-27 22:41:23 +02:00
|
|
|
stage: build
|
2021-07-27 22:24:30 +02:00
|
|
|
script:
|
2021-07-27 22:53:53 +02:00
|
|
|
- docker build .
|
2021-07-27 22:51:52 +02:00
|
|
|
- docker tag registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA}
|
|
|
|
- docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA}
|