@@ -6,6 +6,7 @@ pipeline {
6
6
agent any
7
7
environment {
8
8
IMAGE_NAME = " nginx-proxy-manager"
9
+ BASE_IMAGE_NAME = " jc21/nginx-proxy-manager-base"
9
10
TEMP_IMAGE_NAME = " nginx-proxy-manager-build_${ BUILD_NUMBER} "
10
11
TEMP_IMAGE_NAME_ARM = " nginx-proxy-manager-arm-build_${ BUILD_NUMBER} "
11
12
// TAG_VERSION = getPackageVersion()
@@ -23,10 +24,10 @@ pipeline {
23
24
steps {
24
25
ansiColor(' xterm' ) {
25
26
// Codebase
26
- sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $IMAGE_NAME-base :latest yarn --registry=$NPM_REGISTRY install'
27
- sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $IMAGE_NAME-base :latest npm runscript build'
27
+ sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME :latest yarn --registry=$NPM_REGISTRY install'
28
+ sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME :latest npm runscript build'
28
29
sh ' rm -rf node_modules'
29
- sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $IMAGE_NAME-base :latest yarn --registry=$NPM_REGISTRY install --prod'
30
+ sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME :latest yarn --registry=$NPM_REGISTRY install --prod'
30
31
sh ' docker run --rm -v $(pwd):/data $DOCKER_CI_TOOLS node-prune'
31
32
32
33
// Docker Build
@@ -55,10 +56,10 @@ pipeline {
55
56
steps {
56
57
ansiColor(' xterm' ) {
57
58
// Codebase
58
- sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $IMAGE_NAME-base :armhf yarn --registry=$NPM_REGISTRY install'
59
- sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $IMAGE_NAME-base :armhf npm runscript build'
59
+ sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME :armhf yarn --registry=$NPM_REGISTRY install'
60
+ sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME :armhf npm runscript build'
60
61
sh ' rm -rf node_modules'
61
- sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $IMAGE_NAME-base :armhf yarn --registry=$NPM_REGISTRY install --prod'
62
+ sh ' docker run --rm -v $(pwd):/srv/app -w /srv/app $BASE_IMAGE_NAME :armhf yarn --registry=$NPM_REGISTRY install --prod'
62
63
63
64
// Docker Build
64
65
sh ' docker build --pull --no-cache --squash --compress -t TEMP_IMAGE_NAME_ARM .'
0 commit comments