Fix CI pipeline

This commit is contained in:
Jamie Curnow 2018-05-03 17:03:34 +10:00
parent dba7f964d2
commit 4bb63fcf8d

8
Jenkinsfile vendored
View File

@ -12,23 +12,23 @@ pipeline {
stages { stages {
stage('Prepare') { stage('Prepare') {
steps { steps {
sh '''docker pull ${DOCKER_PRIVATE_REGISTRY}/nginx-proxy-manager-base sh '''docker pull jc21/nginx-proxy-manager-base
docker pull ${DOCKER_CI_TOOLS}''' docker pull ${DOCKER_CI_TOOLS}'''
sh '''CWD=`pwd` sh '''CWD=`pwd`
docker run --rm \\ docker run --rm \\
-v $CWD/manager:/srv/manager \\ -v $CWD/manager:/srv/manager \\
-w /srv/manager \\ -w /srv/manager \\
${DOCKER_PRIVATE_REGISTRY}/nginx-proxy-manager-base \\ jc21/nginx-proxy-manager-base \\
npm --registry=$NPM_REGISTRY install npm --registry=$NPM_REGISTRY install
exit $?''' exit $?'''
sh '''CWD=`pwd` sh '''CWD=`pwd`
docker run --rm -v $CWD/manager:/srv/manager -w /srv/manager ${DOCKER_PRIVATE_REGISTRY}/nginx-proxy-manager-base gulp build docker run --rm -v $CWD/manager:/srv/manager -w /srv/manager jc21/nginx-proxy-manager-base gulp build
exit $?''' exit $?'''
sh '''CWD=`pwd` sh '''CWD=`pwd`
docker run --rm -e NODE_ENV=production -v $CWD/manager:/srv/manager -w /srv/manager ${DOCKER_PRIVATE_REGISTRY}/nginx-proxy-manager-base npm prune --production docker run --rm -e NODE_ENV=production -v $CWD/manager:/srv/manager -w /srv/manager jc21/nginx-proxy-manager-base npm prune --production
exit $?''' exit $?'''
sh '''docker run --rm \\ sh '''docker run --rm \\