Skip to content

Commit

Permalink
Add gitlab CI docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDent committed Oct 17, 2016
1 parent 32727b4 commit fb5a55c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

services:
- docker:dind

build:
image: danieldent/docker-builder
script:
- docker version
- docker info
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build ${DOCKER_BUILD_ARGS} --force-rm --no-cache --pull -t ci-${CI_BUILD_ID} .
- gitlab-ci-docker-retag.sh ci-${CI_BUILD_ID} $CI_REGISTRY_IMAGE 1 1 master

0 comments on commit fb5a55c

Please sign in to comment.