diff --git a/.github/workflows/sifi_erl.yaml b/.github/workflows/sifi_erl.yaml index faa14f1..2ce049b 100644 --- a/.github/workflows/sifi_erl.yaml +++ b/.github/workflows/sifi_erl.yaml @@ -14,6 +14,9 @@ jobs: - { DISTRO: "rockylinux", OS_VERSION: "8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "26.1.2"} - { DISTRO: "rockylinux", OS_VERSION: "8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "25.3.2"} - { DISTRO: "rockylinux", OS_VERSION: "8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "24.3.4"} + - { DISTRO: "centos", OS_VERSION: "7", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "26.1.2"} + - { DISTRO: "centos", OS_VERSION: "7", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "25.3.2"} + - { DISTRO: "centos", OS_VERSION: "7", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64", ERLANG_VERSION: "24.3.4"} runs-on: ${{ matrix.cfg.RUNNER }} steps: - name: Checkout diff --git a/builders/elixir_centos.Dockerfile b/builders/elixir_centos.Dockerfile index b2708a8..4f9fa44 100644 --- a/builders/elixir_centos.Dockerfile +++ b/builders/elixir_centos.Dockerfile @@ -6,6 +6,15 @@ ARG os ARG os_version ADD yumdnf /usr/local/bin/ +# Fix centos 7 mirrors +RUN --mount=type=cache,id=${os}_${os_version},target=/var/cache/dnf,sharing=private \ + --mount=type=cache,id=${os}_${os_version},target=/var/cache/yum,sharing=private \ + if [ "${os}:${os_version}" = "centos:7" ]; then \ + sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo \ + && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo \ + && sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo; \ + fi + # Fix centos 8 mirrors RUN --mount=type=cache,id=${os}_${os_version},target=/var/cache/dnf,sharing=private \ --mount=type=cache,id=${os}_${os_version},target=/var/cache/yum,sharing=private \