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.
base/.gitlab-ci.yml

31 lines
509 B
YAML
Raw Normal View History

2016-07-04 12:17:08 +00:00
image: leenooks/ci-docker:latest
2016-05-26 12:09:23 +00:00
services:
2016-07-04 12:27:43 +00:00
- leenooks/ci-docker:dind
2016-05-26 12:09:23 +00:00
2016-07-07 12:07:49 +00:00
variables:
2016-07-07 12:10:17 +00:00
REGISTRY: registry.leenooks.net
IMAGE: leenooks/base
2016-07-07 12:07:49 +00:00
2016-05-26 12:09:23 +00:00
before_script:
2016-07-07 12:07:49 +00:00
- env|sort
2016-07-04 12:54:33 +00:00
- docker info
- docker version
2016-07-07 12:07:49 +00:00
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
2016-05-26 12:09:23 +00:00
2016-05-27 03:44:25 +00:00
test:
stage: test
script:
2016-07-07 12:07:49 +00:00
- docker build -t ${IMAGE} .
2016-05-27 03:47:20 +00:00
only:
- debug
2016-05-27 03:44:25 +00:00
2016-05-26 12:09:23 +00:00
build:
stage: build
script:
2016-07-07 12:07:49 +00:00
- docker build -t ${IMAGE} .
- docker tag ${IMAGE} ${REGISTRY}/${IMAGE}
- docker push ${REGISTRY}/${IMAGE}
tags:
- docker