us gitlab docker registry

This commit is contained in:
Sebastian Hugentobler 2017-08-31 14:44:47 +02:00
parent ecf6d8c676
commit ec1d50c9b3
2 changed files with 11 additions and 1 deletions

10
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,10 @@
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:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
- docker push $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA

View File

@ -1,3 +1,3 @@
FROM quay.io/thallian/alpine-s6:latest FROM registry.gitlab.com/thallian/docker-alpine-s6:latest
ADD /rootfs / ADD /rootfs /