fix(core): update

This commit is contained in:
Philipp Kunz
2019-10-30 19:16:37 +01:00
parent 53572dc470
commit 52f370931e
5 changed files with 121 additions and 73 deletions

View File

@@ -1,71 +1,61 @@
# gitzone docker
image: hosttoday/ht-docker-dbase:npmci
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
# gitzone ci_docker
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
cache:
paths:
- .npmci-cache/
key: '$CI_BUILD_STAGE'
before_script:
- npmci npm prepare
stages:
- buildAndTest
- build
- test
- release
- trigger
- pages
before_script:
- yarn global add npmci
- npmci docker login
buildAndTest:
stage: buildAndTest
script:
- npmci docker build
- npmci docker test
except:
- tags
- triggers
tags:
- lossless
- priv
build:
stage: build
script:
- npmci docker build
- npmci docker push registry.gitlab.com test
only:
- tags
- triggers
tags:
- lossless
- priv
test:
testStable:
stage: test
script:
- npmci docker pull registry.gitlab.com test
- npmci docker test
only:
- tags
- triggers
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- priv
- docker
testBuild:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- docker
- notpriv
release:
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
stage: release
script:
- npmci docker pull registry.gitlab.com test
- npmci docker push docker.io
- npmci node install stable
- npmci docker login
- npmci docker build
- npmci docker test
- npmci docker push registry.gitlab.com
only:
- tags
- triggers
tags:
- lossless
- docker
- priv
trigger:
@@ -74,24 +64,6 @@ trigger:
- npmci trigger
only:
- tags
- triggers
tags:
- lossless
- priv
pages:
before_script:
- 'npmci -v'
image: hosttoday/ht-docker-node:npmci
stage: pages
script:
- npmci command yarn global add npmpage
- npmci command npmpage
only:
- tags
tags:
- docker
artifacts:
expire_in: 1 week
paths:
- public