add gitlab ci

This commit is contained in:
Michel Promonet 2018-12-09 22:01:22 +01:00
parent b0072384c7
commit a5ad056084

18
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,18 @@
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