mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix CI pipeline
This commit is contained in:
parent
31ab201175
commit
c7852125a8
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -39,12 +39,9 @@ node-prune```
|
|||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
TAG_VERSION = sh (
|
def TAG_VERSION = getPackageVersion()
|
||||||
script: 'docker run --rm -v $(pwd)/manager:/data ${DOCKER_CI_TOOLS} bash -c "cat /data/package.json|jq -r \'.version\'"',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
|
|
||||||
sh '''docker build -t ${TEMP_IMAGE_NAME} .
|
sh '''docker build -t $TEMP_IMAGE_NAME .
|
||||||
exit $?'''
|
exit $?'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -80,3 +77,8 @@ exit $?'''
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def getPackageVersion() {
|
||||||
|
ver = sh(script: 'docker run --rm -v $(pwd)/manager:/data $DOCKER_CI_TOOLS bash -c "cat /data/package.json|jq -r \'.version\'"', returnStdout: true)
|
||||||
|
return ver.trim()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user