add gitlab ci file

This commit is contained in:
Sebastian Hugentobler 2018-05-23 17:00:46 +02:00
parent e1c324286d
commit 7a7e51ce11

11
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,11 @@
build:
image: docker:latest
services:
- docker:dind
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --pull --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA