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.

3 Commits
master ... c6

Author SHA1 Message Date
Deon George
0aad13dc29 Updated with new .gitlab-ci file 2016-07-11 02:04:10 +10:00
Deon George
4bbc2fb76b CentOS6 base image 2016-07-07 23:59:39 +10:00
Deon George
025abc9d8e Updated .gitlab-ci.yml 2016-07-07 23:48:28 +10:00
2 changed files with 28 additions and 14 deletions

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: "6"
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:
- c6

View File

@ -1,9 +1,8 @@
# NAME leenooks/base
# VERSION latest
# BUILD docker build -t="leenooks/base" .
# VERSION 6
FROM centos:latest
FROM centos:6
MAINTAINER deon@leenooks.net
RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
RUN yum -y install http://yum.leenooks.net/repo-7.rpm && yum -y update && yum clean all && rm -rf /var/tmp/*
RUN yum -y install http://yum.leenooks.net/repo-6.rpm && yum -y update && yum clean all && rm -rf /var/tmp/*