ht-docker-mkdocs/.gitlab-ci.yml
2019-05-13 19:04:33 +02:00

77 lines
1.3 KiB
YAML

# gitzone docker
image: hosttoday/ht-docker-dbase:npmci
services:
- docker:dind
stages:
- buildAndTest
- triggerPagesVerify
before_script:
- npm install -g @shipzone/npmci
- npmci docker login
buildTest:
stage: buildAndTest
script:
- npmci docker build
- npmci docker test
except:
- tags
- triggers
tags:
- lossless
- priv
buildTestRelease:
stage: buildAndTest
script:
- npmci docker build
- npmci docker test
- npmci docker push registry.gitlab.com test
- npmci docker push registry.gitlab.com
- npmci docker push docker.io
only:
- tags
- triggers
tags:
- lossless
- priv
trigger:
stage: triggerPagesVerify
script:
- npmci trigger
only:
- tags
- triggers
tags:
- lossless
- priv
pages:
stage: triggerPagesVerify
before_script:
- 'npmci -v'
image: hosttoday/ht-docker-node:npmci
script:
# - npmci command npm install -g npmpage
# - npmci command npmpage
- echo "nothing here yet until @gitzone/tsdoc is ready!"
only:
- tags
tags:
- docker
artifacts:
expire_in: 1 week
paths:
- public
verify:
stage: triggerPagesVerify
script:
- npmci docker pull registry.gitlab.com test
only:
- tags
tags:
- docker