--- /dev/null
+---
+issues:
+ - |
+ Sigul install is available only on CentOS based patforms.
+fixes:
+ - |
+ Skip sigul installation on Ubuntu, since the CentOS docker container handles
+ the installation during container creation.
# Ensure we fail the job if any steps fail.
set -e -o pipefail
+OS=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
+if ! [[ "${OS}" =~ ^(fedora|centos|redhat) ]]; then
+ echo "INFO: Skip step, sigul install not available on platform ${OS}"
+ exit 0
+fi
+
if command -v sigul &>/dev/null; then
echo "Sigul already installed; skipping installation."
else
lf-activate-venv --python python3 lftools
OS=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
-OS_RELEASE=$(facter lsbdistrelease | tr '[:upper:]' '[:lower:]')
-if [[ "$OS_RELEASE" == "8" && "$OS" == 'centos' ]]; then
+OS_DIST_RELEASE=$(facter lsbdistrelease | tr '[:upper:]' '[:lower:]')
+OS_RELEASE=$(facter operatingsystemrelease | tr '[:upper:]' '[:lower:]')
+if [[ "$OS_DIST_RELEASE" == "8" && "${OS}" =~ ^(fedora|centos|redhat)$ ]] || \
+ [[ "$OS_RELEASE" =~ ^(20.04|22.04)$ && "${OS}" =~ ^(ubuntu|debian)$ ]]; then
# Get Dockerfile and the enterpoint to build the docker image.
# shellcheck disable=SC2140
wget -O "${WORKSPACE}/sigul-sign.sh" "https://raw.githubusercontent.com/"\