Skip to content

Commit

Permalink
Exclude ubuntu:bionic from the set of testing images supported as it …
Browse files Browse the repository at this point in the history
…no longer exists at images.linuxcontainers.org. (#115)
  • Loading branch information
ximon18 authored Sep 24, 2024
1 parent eb704d8 commit 067d4c6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/pkg-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#
# DEB/RPM testing:
# ================
# DEB and RPM packages are tested inside LXC/LXD containers because Docker containers don't by default support init
# managers such as systemd but we want to test systemd service unit installation and activation.
# DEB and RPM packages are tested inside LXC/LXD (now Incus) containers because Docker containers don't by default
# support init managers such as systemd but we want to test systemd service unit installation and activation.
#
# RHEL 8/CentOS 8 support:
# ========================
Expand Down Expand Up @@ -426,7 +426,18 @@ jobs:
MODIFIED_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c 'del(.image[]? | select(. == "debian:stretch")) | del(.include[]? | select(.image == "debian:stretch"))')
MODIFIED_JSON=$(echo ${MODIFIED_JSON} | jq -c 'del(.include[]? | select(.os == "debian:stretch"))')
if [[ "${CONTROL_JSON}" != "${MODIFIED_JSON}" ]]; then
echo "::warning::Removed debian:stretch image from package_test_rules because the LXC image no longer exists"
echo "::warning::Removed debian:stretch image from package_test_rules because the LXC/Incus image no longer exists"
PACKAGE_TEST_RULES_PROCESSED_JSON="${MODIFIED_JSON}"
fi
fi
# Exclude ubuntu:bionic because the LXC image is no longer available.
if [[ "${PACKAGE_TEST_RULES_PROCESSED_JSON}" != "{}" ]]; then
CONTROL_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c)
MODIFIED_JSON=$(echo ${PACKAGE_TEST_RULES_PROCESSED_JSON} | jq -c 'del(.image[]? | select(. == "ubuntu:bionic")) | del(.include[]? | select(.image == "debian:stretch"))')
MODIFIED_JSON=$(echo ${MODIFIED_JSON} | jq -c 'del(.include[]? | select(.os == "ubuntu:bionic"))')
if [[ "${CONTROL_JSON}" != "${MODIFIED_JSON}" ]]; then
echo "::warning::Removed ubuntu:bionic image from package_test_rules because the LXC/Incus image no longer exists"
PACKAGE_TEST_RULES_PROCESSED_JSON="${MODIFIED_JSON}"
fi
fi
Expand Down

0 comments on commit 067d4c6

Please sign in to comment.