File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
.github/actions/base_images Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ runs:
45
45
# Enable running/building ARM64 images: https://github.com/multiarch/qemu-user-static
46
46
sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes
47
47
IMAGES=()
48
- for IMAGE in base pulp-ci-centos9 ; do
49
- for ARCH in arm64 amd64; do
50
- echo "Checking if rebuild needed for ${IMAGE}: ${ARCH}"
51
- podman run --pull=never pulp/${IMAGE}:ci- ${ARCH} bash -c "dnf check-upgrade "
52
- if [ $? -gt 0 ]; then
53
- echo "Rebuild needed for ${IMAGE}: ${ARCH}"
54
- IMAGES+=('${IMAGE} :${ARCH}')
55
- fi
56
- done
48
+ for ARCH in arm64 amd64 ; do
49
+ echo "Checking if rebuild needed for base:${ARCH} & pulp-ci-centos9:${arch}"
50
+ if ! podman run --pull=never pulp/base:ci- ${ARCH} bash -c "dnf check-upgrade"; then
51
+ echo "Rebuild needed for base: ${ARCH} & pulp-ci-centos9:${arch} "
52
+ IMAGES+=('base:${ARCH}' 'pulp-ci-centos9:${ARCH}')
53
+ elif ! podman run --pull=never pulp/pulp-ci-centos9:ci- ${ARCH} bash -c "dnf check-upgrade"; then
54
+ echo "Rebuild needed for just pulp-ci-centos9 :${arch}"
55
+ IMAGES+=('pulp-ci-centos9:${ARCH}')
56
+ fi
57
57
done
58
58
if [ ${#IMAGES[@]} -eq 0 ]; then
59
59
echo "No rebuilds needed :)"
You can’t perform that action at this time.
0 commit comments