Skip to content
Snippets Groups Projects
Commit e5258648 authored by Jonas Zohren's avatar Jonas Zohren :speech_balloon:
Browse files

Add docker building ci

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #1159 failed
image: docker:stable
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
services:
- docker:dind
build:
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:master
- docker build --cache-from $CI_REGISTRY_IMAGE:master -t $IMAGE_TAG .
- docker push $IMAGE_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment