You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
350 B
YAML
19 lines
350 B
YAML
6 years ago
|
image: docker:stable
|
||
|
services:
|
||
|
- docker:dind
|
||
|
|
||
|
variables:
|
||
|
DOCKER_HOST: tcp://docker:2375
|
||
|
DOCKER_DRIVER: overlay2
|
||
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||
|
|
||
|
before_script:
|
||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||
|
|
||
|
build:
|
||
|
stage: build
|
||
|
script:
|
||
|
- docker build -t $IMAGE_TAG .
|
||
|
- docker push $IMAGE_TAG
|
||
|
|