Skip to content

Commit

Permalink
Add centos to sifi builds. Attempt to fix centos repo location
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmonteleone committed Oct 23, 2024
1 parent ffc3122 commit e38bf42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/sifi_erl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions builders/elixir_centos.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit e38bf42

Please sign in to comment.