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.

8 Commits
master ... c7

Author SHA1 Message Date
Deon George
a0f9344d25 Added x86_64 to docker tag 2019-03-30 11:03:17 +11:00
Deon George
3bef50d569 Change to use docker service, added epel to base 2019-01-18 22:59:06 +11:00
Deon George
05e533e0fd Updated .gitlab-ci 2018-03-20 21:55:54 +11:00
Deon George
b4fd617e7e Removed MAINTAINER, skip yum updates 2017-05-25 21:45:53 +10:00
Deon George
1967ccebda Updated with new .gitlab-ci file 2016-07-11 02:01:44 +10:00
Deon George
7c74cbf76e CentOS7 base image 2016-07-08 00:04:11 +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 30 additions and 15 deletions

View File

@ -1,25 +1,42 @@
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: "7"
CACHETAG: build
DOCKER_HOST: tcp://docker:2375
services:
- docker:dind
before_script:
- docker info
- docker version
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
test:
stage: test
script:
- cat /etc/hosts
- env|sort
- docker build -t ${CI_REGISTRY_IMAGE}:${VERSION} .
- docker images
only:
- debug
build:
stage: build
script:
- docker build -t ${IMAGE} .
- docker tag ${IMAGE} ${REGISTRY}/${IMAGE}
- docker push ${REGISTRY}/${IMAGE}
- if [ -f init ]; then chmod 500 init; fi
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
tags:
- docker
- x86_64
only:
- c7

View File

@ -1,9 +1,7 @@
# NAME leenooks/base
# VERSION latest
# BUILD docker build -t="leenooks/base" .
# VERSION 7
FROM centos:latest
MAINTAINER deon@leenooks.net
FROM centos:7
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-7.rpm epel-release && yum clean all && rm -rf /var/tmp/*