Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
906d613669 | ||
|
177b1b6b09 | ||
|
42aae94522 | ||
|
3707fe065c | ||
|
2f2a0a0388 | ||
|
92f768e22a | ||
|
2446b45d95 | ||
|
2b6000fb86 | ||
|
29072821ba | ||
|
9fcc8d418a | ||
|
621faec8ba | ||
|
a3f2a619d0 | ||
|
edbd939515 | ||
|
7d4003ae3c | ||
|
c63024aebf | ||
|
3152e3e2b8 | ||
|
92bb4ae14e | ||
|
cd7958c9f3 | ||
|
3b0e35ce02 | ||
|
003425943d | ||
|
40ba388a84 | ||
|
96b85cef97 |
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
.git/
|
@ -1,25 +1,40 @@
|
||||
image: leenooks/ci-docker:latest
|
||||
image: docker:latest
|
||||
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
|
||||
services:
|
||||
- leenooks/ci-docker:dind
|
||||
|
||||
variables:
|
||||
REGISTRY: registry.leenooks.net
|
||||
IMAGE: leenooks/base
|
||||
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
|
||||
|
||||
before_script:
|
||||
- docker info
|
||||
- docker version
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
|
||||
- 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
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- docker build -t ${IMAGE} .
|
||||
- docker tag ${IMAGE} ${REGISTRY}/${IMAGE}
|
||||
- docker push ${REGISTRY}/${IMAGE}
|
||||
- docker build -t ${DOCKER_IMAGE}:${VERSION} .
|
||||
- docker tag ${DOCKER_IMAGE}:${VERSION} ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
|
||||
- docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
|
||||
tags:
|
||||
- docker
|
||||
only:
|
||||
- master
|
||||
|
@ -1,6 +1,5 @@
|
||||
# NAME leenooks/base
|
||||
# VERSION latest
|
||||
# BUILD docker build -t="leenooks/base" .
|
||||
|
||||
FROM centos:latest
|
||||
MAINTAINER deon@leenooks.net
|
||||
|
Reference in New Issue
Block a user