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

26 lines
433 B
YAML
Raw Permalink Normal View History

image: leenooks/ci-docker:latest
stages:
- build
2016-05-26 12:09:23 +00:00
services:
- leenooks/ci-docker:dind
variables:
REGISTRY: registry.leenooks.net
IMAGE: leenooks/base
2016-05-26 12:09:23 +00:00
before_script:
- docker info
- docker version
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
2016-05-26 12:09:23 +00:00
build:
stage: build
script:
- docker build -t ${IMAGE} .
- docker tag ${IMAGE} ${REGISTRY}/${IMAGE}
- docker push ${REGISTRY}/${IMAGE}
tags:
- docker