You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "> External trigger running off of 3.19 branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_BASEIMAGE_ALPINE_NGINX_3_19\`" >> $GITHUB_STEP_SUMMARY
24
+
echo "> External trigger running off of 3.19 branch. To disable this trigger, add \`baseimage-alpine-nginx_3.19\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY
86
+
FAILURE_REASON="New version ${EXT_RELEASE} for baseimage-alpine-nginx tag 3.19 is detected, however not all artifacts are uploaded to upstream release yet. Will try again later."
ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/${br}/jenkins-vars.yml | yq -r '.ls_branch')
28
-
if [ "${br}" == "${ls_branch}" ]; then
29
+
JENKINS_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/${br}/jenkins-vars.yml)
30
+
if [[ "${br}" == $(yq -r '.ls_branch' <<< "${JENKINS_VARS}") ]]; then
29
31
echo "Branch appears to be live; checking workflow." >> $GITHUB_STEP_SUMMARY
30
-
if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/${br}/.github/workflows/package_trigger.yml > /dev/null 2>&1; then
31
-
echo "Triggering package trigger workflow for branch ${br}" >> $GITHUB_STEP_SUMMARY
32
+
if [[ $(yq -r '.skip_package_check' <<< "${JENKINS_VARS}") == "true" ]]; then
33
+
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
34
+
echo "> Skipping branch ${br} due to \`skip_package_check\` being set in \`jenkins-vars.yml\`." >> $GITHUB_STEP_SUMMARY
35
+
skipped_branches="${skipped_branches}${br} "
36
+
elif grep -wq "^baseimage-alpine-nginx_${br}$" <<< "${SKIP_PACKAGE_TRIGGER}"; then
echo "> There already seems to be an active build on Jenkins; skipping package trigger for ${br}" >> $GITHUB_STEP_SUMMARY
43
+
skipped_branches="${skipped_branches}${br} "
44
+
else
45
+
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
46
+
echo "> Triggering package trigger for branch ${br}" >> $GITHUB_STEP_SUMMARY
47
+
printf "> To disable, add \`baseimage-alpine-nginx_%s\` into the Github organizational variable \`SKIP_PACKAGE_TRIGGER\`.\n\n" "${br}" >> $GITHUB_STEP_SUMMARY
0 commit comments