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
2016-07-07 22:10:17 +10:00

31 lines
509 B
YAML

image: leenooks/ci-docker:latest
services:
- leenooks/ci-docker:dind
variables:
REGISTRY: registry.leenooks.net
IMAGE: leenooks/base
before_script:
- env|sort
- docker info
- docker version
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
test:
stage: test
script:
- docker build -t ${IMAGE} .
only:
- debug
build:
stage: build
script:
- docker build -t ${IMAGE} .
- docker tag ${IMAGE} ${REGISTRY}/${IMAGE}
- docker push ${REGISTRY}/${IMAGE}
tags:
- docker