image: leenooks/ci-docker:latest
services:
- leenooks/ci-docker:dind
before_script:
- env
- cat /etc/hosts
- ps -Af
- df
- find /etc/docker/ -print -exec ls -al {} \;
- id
- set
- docker info
- docker version
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.leenooks.net
test:
stage: test
script:
- docker build -t leenooks/base .
only:
- debug
build:
stage: build
- docker tag leenooks/base registry.leenooks.net/leenooks/base
- docker push registry.leenooks.net/leenooks/base