Compare commits

...
This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.

22 Commits

Author SHA1 Message Date
Deon George
906d613669 Test new .gitlab-ci file with variable 2016-07-09 14:40:52 +10:00
Deon George
177b1b6b09 Updated docker host 2016-07-08 17:22:21 +10:00
Deon George
42aae94522 Add listing hosts for debugging 2016-07-08 17:20:55 +10:00
Deon George
3707fe065c Try build using image from registry 2016-07-08 17:17:43 +10:00
Deon George
2f2a0a0388 Trying out gitlab-ci to use library/docker 2016-07-08 16:47:16 +10:00
Deon George
92f768e22a Updated .gitlab-ci.yml 2016-07-07 23:50:47 +10:00
Deon George
2446b45d95 Using gitlab variables 2016-07-07 23:35:03 +10:00
Deon George
2b6000fb86 Merge from origin 2016-07-07 23:30:59 +10:00
Deon George
29072821ba Using gitlab variables 2016-07-07 23:29:56 +10:00
Deon George
9fcc8d418a Updated .gitlab-ci.yml 2016-07-07 22:10:17 +10:00
Deon George
621faec8ba Testing with variables 2016-07-07 22:07:49 +10:00
Deon George
a3f2a619d0 Using customer docker - more debugging 2016-07-04 23:32:01 +10:00
Deon George
edbd939515 Using customer docker - more debugging 2016-07-04 22:54:33 +10:00
Deon George
7d4003ae3c Using customer docker 2016-07-04 22:27:43 +10:00
Deon George
c63024aebf Using customer docker 2016-07-04 22:17:08 +10:00
Deon George
3152e3e2b8 Using customer docker 2016-07-04 22:07:54 +10:00
Deon George
92bb4ae14e Debugging gitlab runner 2016-05-27 13:48:54 +10:00
Deon George
cd7958c9f3 Debugging gitlab runner 2016-05-27 13:47:20 +10:00
Deon George
3b0e35ce02 Debugging gitlab runner 2016-05-27 13:44:25 +10:00
Deon George
003425943d Debugging gitlab runner 2016-05-27 13:32:42 +10:00
Deon George
40ba388a84 Debugging gitlab runner 2016-05-27 13:25:27 +10:00
Deon George
96b85cef97 Debugging gitlab runner 2016-05-27 12:51:06 +10:00
3 changed files with 26 additions and 11 deletions

1
.dockerignore Normal file
View File

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

View File

@ -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

View File

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