File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 27
27
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
28
28
exit 1
29
29
fi
30
+ EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
30
31
echo "**** External version: ${EXT_RELEASE} ****"
31
32
echo "**** Retrieving last pushed version ****"
32
33
image="linuxserver/bookstack"
Original file line number Diff line number Diff line change @@ -450,6 +450,13 @@ pipeline {
450
450
environment name : ' EXIT_STATUS' , value : ' '
451
451
}
452
452
steps {
453
+ sh ''' #! /bin/bash
454
+ echo "Packages were updated. Cleaning up the image and exiting."
455
+ if [ "${MULTIARCH}" == "true" ]; then
456
+ docker rmi ${IMAGE}:amd64-${META_TAG}
457
+ else
458
+ docker rmi ${IMAGE}:${META_TAG}
459
+ fi'''
453
460
script{
454
461
env. EXIT_STATUS = ' ABORTED'
455
462
}
@@ -467,6 +474,13 @@ pipeline {
467
474
}
468
475
}
469
476
steps {
477
+ sh ''' #! /bin/bash
478
+ echo "There are no package updates. Cleaning up the image and exiting."
479
+ if [ "${MULTIARCH}" == "true" ]; then
480
+ docker rmi ${IMAGE}:amd64-${META_TAG}
481
+ else
482
+ docker rmi ${IMAGE}:${META_TAG}
483
+ fi'''
470
484
script{
471
485
env. EXIT_STATUS = ' ABORTED'
472
486
}
@@ -556,7 +570,7 @@ pipeline {
556
570
'''
557
571
}
558
572
sh ''' #! /bin/bash
559
- for DELETEIMAGE in "${GITHUBIMAGE}" "{GITLABIMAGE}" "${IMAGE}"; do
573
+ for DELETEIMAGE in "${GITHUBIMAGE}" "$ {GITLABIMAGE}" "${IMAGE}"; do
560
574
docker rmi \
561
575
${DELETEIMAGE}:${META_TAG} \
562
576
${DELETEIMAGE}:${EXT_RELEASE_TAG} \
You can’t perform that action at this time.
0 commit comments