2022-06-20 04:15:59 +00:00
|
|
|
# .gitlab-ci.yml
|
|
|
|
|
|
|
|
variables:
|
|
|
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
|
|
|
# Tell 'docker:dind' to enable TLS (recommended)
|
|
|
|
# and generate certificates in the specified directory.
|
|
|
|
DOCKER_TLS_CERTDIR: "/certs"
|
|
|
|
|
|
|
|
build-push-docker-image-job:
|
|
|
|
# Specify a Docker image to run the job in.
|
|
|
|
image: docker:latest
|
|
|
|
# Specify an additional image 'docker:dind' ("Docker-in-Docker") that
|
|
|
|
# will start up the Docker daemon when it is brought up by a runner.
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
script:
|
2022-06-20 05:06:05 +00:00
|
|
|
- docker image build --tag docker-registry.dev.jevalide.ca/emoji-flask-app:latest .
|
|
|
|
docker push docker-registry.dev.jevalide.ca/emoji-flask-app:latest
|
|
|
|
|