30 lines
542 B
YAML
30 lines
542 B
YAML
image: leenooks/ci-docker:latest
|
|
|
|
services:
|
|
- leenooks/ci-docker:dind
|
|
|
|
before_script:
|
|
- docker info
|
|
- docker version
|
|
- df
|
|
- find /etc/docker/ -print -exec ls -al {} \;
|
|
- id
|
|
- env
|
|
- set
|
|
- ps -Af
|
|
- 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
|