This repository was archived by the owner on Oct 25, 2023. It is now read-only.
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 2727 "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
2828 exit 1
2929 fi
30+ EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
3031 echo "**** External version: ${EXT_RELEASE} ****"
3132 echo "**** Retrieving last pushed version ****"
3233 image="linuxserver/embystat"
Original file line number Diff line number Diff line change @@ -442,6 +442,13 @@ pipeline {
442442 environment name : ' EXIT_STATUS' , value : ' '
443443 }
444444 steps {
445+ sh ''' #! /bin/bash
446+ echo "Packages were updated. Cleaning up the image and exiting."
447+ if [ "${MULTIARCH}" == "true" ]; then
448+ docker rmi ${IMAGE}:amd64-${META_TAG}
449+ else
450+ docker rmi ${IMAGE}:${META_TAG}
451+ fi'''
445452 script{
446453 env. EXIT_STATUS = ' ABORTED'
447454 }
@@ -459,6 +466,13 @@ pipeline {
459466 }
460467 }
461468 steps {
469+ sh ''' #! /bin/bash
470+ echo "There are no package updates. Cleaning up the image and exiting."
471+ if [ "${MULTIARCH}" == "true" ]; then
472+ docker rmi ${IMAGE}:amd64-${META_TAG}
473+ else
474+ docker rmi ${IMAGE}:${META_TAG}
475+ fi'''
462476 script{
463477 env. EXIT_STATUS = ' ABORTED'
464478 }
@@ -548,7 +562,7 @@ pipeline {
548562 '''
549563 }
550564 sh ''' #! /bin/bash
551- for DELETEIMAGE in "${GITHUBIMAGE}" "{GITLABIMAGE}" "${IMAGE}"; do
565+ for DELETEIMAGE in "${GITHUBIMAGE}" "$ {GITLABIMAGE}" "${IMAGE}"; do
552566 docker rmi \
553567 ${DELETEIMAGE}:${META_TAG} \
554568 ${DELETEIMAGE}:${EXT_RELEASE_TAG} \
You can’t perform that action at this time.
0 commit comments