ci(forgejo): use demisto/matplotlib:1.0.0.64685 and robust git install
Some checks failed
Generate banlist history graph / build (push) Failing after 13s

This commit is contained in:
codex-bot 2025-08-26 22:40:09 -05:00
commit a8838b427f

View file

@ -16,15 +16,30 @@ jobs:
# Match your Forgejo runner label # Match your Forgejo runner label
runs-on: docker runs-on: docker
# Use a prebuilt image with matplotlib preinstalled (cached on runner) # Use a prebuilt image with matplotlib preinstalled (cached on runner)
container: demisto/matplotlib:latest container: demisto/matplotlib:1.0.0.64685
steps: steps:
- name: Ensure git is available (minimal) - name: Ensure git is available (minimal)
run: | run: |
set -euo pipefail set -euo pipefail
if ! command -v git >/dev/null 2>&1; then if command -v git >/dev/null 2>&1; then
exit 0
fi
echo "git not found; attempting install..."
if command -v apt-get >/dev/null 2>&1; then
apt-get update apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git ca-certificates
git ca-certificates elif command -v apk >/dev/null 2>&1; then
apk add --no-cache git ca-certificates
update-ca-certificates || true
elif command -v microdnf >/dev/null 2>&1; then
microdnf install -y git ca-certificates || microdnf install -y git
elif command -v dnf >/dev/null 2>&1; then
dnf -y install git ca-certificates || dnf -y install git
elif command -v yum >/dev/null 2>&1; then
yum -y install git ca-certificates || yum -y install git
else
echo "No supported package manager found to install git" >&2
exit 1
fi fi
- name: Checkout repository (warm or clone) - name: Checkout repository (warm or clone)