mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-22 21:08:13 -05:00
Fix CI pipeline
This commit is contained in:
parent
dba7f964d2
commit
4bb63fcf8d
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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 \\
|
||||||
|
Loading…
Reference in New Issue
Block a user