Update .gitlab-ci.yml

This commit is contained in:
Phil Kunz 2017-08-28 01:17:02 +00:00
parent 6097ce7cac
commit 9b0257a46e

View File

@ -13,13 +13,13 @@ stages:
before_script: before_script:
- npm config set unsafe-perm true - npm config set unsafe-perm true
- yarn global add npmci - yarn global add npmci
- npmci prepare docker - npmci docker login
build: build:
stage: build stage: build
script: script:
- npmci docker build - npmci docker build
- npmci docker push test - npmci docker push registry.gitlab.com test
only: only:
- master - master
tags: tags:
@ -30,7 +30,7 @@ build:
test: test:
stage: test stage: test
script: script:
- npmci docker pull test - npmci docker pull registry.gitlab.com test
- npmci docker test - npmci docker test
only: only:
- master - master
@ -42,7 +42,8 @@ test:
release: release:
stage: release stage: release
script: script:
- npmci docker pull test - npmci docker pull registry.gitlab.com test
- npmci docker push docker.io
- npmci docker push registry.gitlab.com - npmci docker push registry.gitlab.com
only: only:
- master - master