17 lines
315 B
YAML
17 lines
315 B
YAML
image: docker:latest
|
|
|
|
variables:
|
|
DOCKER_DRIVER: overlay2
|
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
|
|
|
services:
|
|
- docker:dind
|
|
|
|
build:
|
|
stage: build
|
|
retry: 2
|
|
script:
|
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
|
- docker build -t $IMAGE_TAG .
|
|
- docker push $IMAGE_TAG
|
|
|