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

31 lines
559 B
YAML
Raw Normal View History

2016-07-04 12:17:08 +00:00
image: leenooks/ci-docker:latest
2016-05-26 12:09:23 +00:00
services:
2016-07-04 12:27:43 +00:00
- leenooks/ci-docker:dind
2016-05-26 12:09:23 +00:00
before_script:
2016-07-04 12:54:33 +00:00
- env
- cat /etc/hosts
- ps -Af
2016-05-27 02:43:31 +00:00
- df
2016-05-27 02:51:06 +00:00
- find /etc/docker/ -print -exec ls -al {} \;
- id
2016-05-27 03:32:42 +00:00
- set
2016-07-04 12:54:33 +00:00
- docker info
- docker version
2016-05-27 03:44:25 +00:00
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.leenooks.net
2016-05-26 12:09:23 +00:00
2016-05-27 03:44:25 +00:00
test:
stage: test
script:
- docker build -t leenooks/base .
2016-05-27 03:47:20 +00:00
only:
- debug
2016-05-27 03:44:25 +00:00
2016-05-26 12:09:23 +00:00
build:
stage: build
script:
2016-05-27 03:25:27 +00:00
- docker build -t leenooks/base .
- docker tag leenooks/base registry.leenooks.net/leenooks/base
2016-05-26 12:23:00 +00:00
- docker push registry.leenooks.net/leenooks/base