Skip to content

Commit 4528494

Browse files
committed
style,ci(ct): add some more verbosity about progress in maintenance job
1 parent 9c91798 commit 4528494

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/scripts/maintenance-job.sh

+5
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ for BRANCH in "$@"; do
7070
cd "$MAINTENANCE_WORKSPACE/$BRANCH"
7171

7272
# 2. Now let's apply the patches (we have them checked out in $GITHUB_WORKSPACE, not necessarily in this local checkout)
73+
echo "Checking for patches..."
7374
if [[ -d ${GITHUB_WORKSPACE}/modules/container-base/src/backports/$BRANCH ]]; then
75+
echo "Applying patches now."
7476
find "${GITHUB_WORKSPACE}/modules/container-base/src/backports/$BRANCH" -type f -name '*.patch' -print0 | xargs -0 -n1 patch -p1 -s -i
7577
fi
7678

@@ -82,16 +84,19 @@ for BRANCH in "$@"; do
8284
else
8385
BASE_IMAGE_REF=$( mvn initialize help:evaluate -Pct -f modules/container-base -Dexpression=base.image -Dbase.image.tag.suffix="" -q -DforceStdout )
8486
fi
87+
echo "Determined BASE_IMAGE_REF=$BASE_IMAGE_REF from Maven"
8588

8689
# 4. Check for Temurin image updates
8790
JAVA_IMAGE_REF=$( mvn help:evaluate -Pct -f modules/container-base -Dexpression=java.image -q -DforceStdout )
91+
echo "Determined JAVA_IMAGE_REF=$JAVA_IMAGE_REF from Maven"
8892
NEWER_JAVA_IMAGE=0
8993
if check_newer_parent "$JAVA_IMAGE_REF" "$BASE_IMAGE_REF"; then
9094
NEWER_JAVA_IMAGE=1
9195
fi
9296

9397
# 5. Check for package updates in base image
9498
PKGS="$( grep "ARG PKGS" modules/container-base/src/main/docker/Dockerfile | cut -f2 -d= | tr -d '"' )"
99+
echo "Determined installed packages=\"$PKGS\" from Maven"
95100
NEWER_PKGS=0
96101
# Don't bother with package checks if the java image is newer already
97102
if ! (( NEWER_JAVA_IMAGE )); then

0 commit comments

Comments
 (0)