From 7b390fd1da59ffa08a223719226cd3ac8af463ad Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 9 Apr 2018 18:47:28 +0200 Subject: [PATCH] update ci to put less strain on network --- .gitlab-ci.yml | 39 +++++---------------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index deb2cfe..a997bab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,15 +2,9 @@ image: hosttoday/ht-docker-dbase:npmci services: - docker:dind -variables: - DOCKER_DRIVER: overlay - stages: - buildAndTest - - build - - test - - release - trigger - pages @@ -18,7 +12,7 @@ before_script: - yarn global add npmci - npmci docker login -buildAndTest: +buildTest: stage: buildAndTest script: - npmci docker build @@ -30,37 +24,14 @@ buildAndTest: - lossless - priv -build: - stage: build +buildTestRelase: + stage: buildAndTest script: - 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 - only: - - 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 test - npmci docker push registry.gitlab.com + - npmci docker push docker.io only: - tags - triggers