31 lines
559 B
YAML
31 lines
559 B
YAML
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
|
|
script:
|
|
- docker build -t leenooks/base .
|
|
- docker tag leenooks/base registry.leenooks.net/leenooks/base
|
|
- docker push registry.leenooks.net/leenooks/base
|