Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ubl
bdd_dev
webmasterei
dacap
Commits
02c02a56
Commit
02c02a56
authored
Aug 15, 2018
by
Ulf Seltmann
Browse files
added test for npm-token
parent
6cd06900
Pipeline
#777
failed with stages
in 3 minutes and 56 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
02c02a56
...
...
@@ -92,9 +92,10 @@ npm_publish:
image
:
name
:
node:10-alpine
entrypoint
:
[
"
/bin/su"
,
"
node"
,
"
-c"
]
script
:
-
'
echo
"//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
>
~/.npmrc'
-
npm publish *.tgz --access public
script
:
|
test "${NPM_TOKEN}" == "" && echo "no npm token found" && false
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm publish *.tgz --access public
dependencies
:
-
npm_pack
tags
:
...
...
@@ -152,8 +153,8 @@ docker_publish_production:
export major_version=$(expr ${version} ':' '\([^.]\+\)')
export minor_version=$(expr ${version} ':' '[^.]\+\.\([^.]\+\)')
deployer publish \
--input image.tar.gz
--docker-config "$DOCKER_LIVE_AUTH_CONFIG" \
--input image.tar.gz
\
--docker-config "$
{
DOCKER_LIVE_AUTH_CONFIG
}
" \
--name ${production_repo} \
--tag latest \
--tag ${version} \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment