26 lines
433 B
YAML
26 lines
433 B
YAML
image: leenooks/ci-docker:latest
|
|
|
|
stages:
|
|
- build
|
|
|
|
services:
|
|
- leenooks/ci-docker:dind
|
|
|
|
variables:
|
|
REGISTRY: registry.leenooks.net
|
|
IMAGE: leenooks/base
|
|
|
|
before_script:
|
|
- docker info
|
|
- docker version
|
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- docker build -t ${IMAGE} .
|
|
- docker tag ${IMAGE} ${REGISTRY}/${IMAGE}
|
|
- docker push ${REGISTRY}/${IMAGE}
|
|
tags:
|
|
- docker
|