Compare commits

..

No commits in common. "debug" and "master" have entirely different histories.

3 changed files with 11 additions and 26 deletions

View File

@ -1 +0,0 @@
.git/

View File

@ -1,40 +1,25 @@
image: docker:latest
image: leenooks/ci-docker:latest
stages:
- test
- build
variables:
VERSION: latest
DOCKER_IMAGE: leenooks/base
DOCKER_REGISTRY: registry.leenooks.net
DOCKER_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
services:
- ${DOCKER_REGISTRY}/leenooks/ci-docker:dind
- leenooks/ci-docker:dind
variables:
REGISTRY: registry.leenooks.net
IMAGE: leenooks/base
before_script:
- docker info
- docker version
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${DOCKER_REGISTRY}
test:
stage: test
script:
- cat /etc/hosts
- env|sort
- docker build -t ${DOCKER_IMAGE}:${VERSION} .
- docker images
only:
- debug
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
build:
stage: build
script:
- docker build -t ${DOCKER_IMAGE}:${VERSION} .
- docker tag ${DOCKER_IMAGE}:${VERSION} ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
- docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
- docker build -t ${IMAGE} .
- docker tag ${IMAGE} ${REGISTRY}/${IMAGE}
- docker push ${REGISTRY}/${IMAGE}
tags:
- docker
only:
- master

View File

@ -1,5 +1,6 @@
# NAME leenooks/base
# VERSION latest
# BUILD docker build -t="leenooks/base" .
FROM centos:latest
MAINTAINER deon@leenooks.net