Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit ccec0ba

Browse files
Bot Updating Templated Files
1 parent 8856e90 commit ccec0ba

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/external_trigger.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
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"

Jenkinsfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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} \

0 commit comments

Comments
 (0)