Skip to content

Commit

Permalink
Accidentally combined tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Kelly committed Apr 18, 2018
1 parent ed716bc commit 3bc7e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ stage('publish') {

if(env.DOCKER_TAG != "") {
withCredentials([string(credentialsId: 'npm-token', variable: 'NPM_TOKEN')]) {
sh 'sudo -E docker build --build-arg NPM_TOKEN=$NPM_TOKEN-t ${DOCKER_TAG} .';
sh 'sudo -E docker build --build-arg NPM_TOKEN=$NPM_TOKEN -t ${DOCKER_TAG} .';
sh 'sudo -E docker run -e "NPM_TOKEN=$NPM_TOKEN" ${DOCKER_TAG} bash -c "npm --no-git-tag-version version ${DOCKER_TAG} && npm publish --tag ${NPM_TAG}"';
sh "sudo -E docker push ${DOCKER_TAG}";
}
Expand Down

0 comments on commit 3bc7e57

Please sign in to comment.