-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
28 lines (26 loc) · 1.01 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
stages:
- build-publish
#----------------------------
# BUILD + PUBLISH LIBS
#----------------------------
build_publish:
stage: build-publish
image: harbor.contezza.nl/tooling/docker-npm-maven:1.0.7
before_script:
- mkdir -p $HOME/.docker
- echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json
script:
- docker login -u $CNTZ_DOCKER_QUAY_USER -p $CNTZ_DOCKER_QUAY_PASSWD quay.io
- docker login -u $CNTZ_DOCKER_HARBOR_USER -p $CNTZ_DOCKER_HARBOR_PASSWD harbor.contezza.nl
- git config --global advice.detachedHead false
- npm config set @contezza:registry https://nexus.contezza.nl/repository/npm-releases/
- npm config set //nexus.contezza.nl/repository/npm-releases/:_authToken ${NPM_TOKEN}
- npm config set legacy-peer-deps true
- npm i -g nx && npm ci
- chmod -R 777 ./
- npm run publish-libs ${CI_NPM_STAGE}
only:
variables:
- $CI_COMMIT_MESSAGE =~ /build-publish/
tags:
- cntz-cicd