update ci to put less strain on network
This commit is contained in:
parent
0eb7a24dcd
commit
7b390fd1da
@ -2,15 +2,9 @@
|
|||||||
image: hosttoday/ht-docker-dbase:npmci
|
image: hosttoday/ht-docker-dbase:npmci
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
variables:
|
|
||||||
DOCKER_DRIVER: overlay
|
|
||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- buildAndTest
|
- buildAndTest
|
||||||
- build
|
|
||||||
- test
|
|
||||||
- release
|
|
||||||
- trigger
|
- trigger
|
||||||
- pages
|
- pages
|
||||||
|
|
||||||
@ -18,7 +12,7 @@ before_script:
|
|||||||
- yarn global add npmci
|
- yarn global add npmci
|
||||||
- npmci docker login
|
- npmci docker login
|
||||||
|
|
||||||
buildAndTest:
|
buildTest:
|
||||||
stage: buildAndTest
|
stage: buildAndTest
|
||||||
script:
|
script:
|
||||||
- npmci docker build
|
- npmci docker build
|
||||||
@ -30,37 +24,14 @@ buildAndTest:
|
|||||||
- lossless
|
- lossless
|
||||||
- priv
|
- priv
|
||||||
|
|
||||||
build:
|
buildTestRelase:
|
||||||
stage: build
|
stage: buildAndTest
|
||||||
script:
|
script:
|
||||||
- npmci docker build
|
- npmci docker build
|
||||||
- npmci docker push registry.gitlab.com test
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
- triggers
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- priv
|
|
||||||
|
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npmci docker pull registry.gitlab.com test
|
|
||||||
- npmci docker test
|
- npmci docker test
|
||||||
only:
|
- npmci docker push registry.gitlab.com test
|
||||||
- tags
|
|
||||||
- triggers
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- priv
|
|
||||||
|
|
||||||
release:
|
|
||||||
stage: release
|
|
||||||
script:
|
|
||||||
- npmci docker pull registry.gitlab.com test
|
|
||||||
- npmci docker push docker.io
|
|
||||||
- npmci docker push registry.gitlab.com
|
- npmci docker push registry.gitlab.com
|
||||||
|
- npmci docker push docker.io
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
- triggers
|
- triggers
|
||||||
|
Loading…
Reference in New Issue
Block a user