Skip to content

Commit

Permalink
Build Fedora rawhide image with podman to avoid the clone3 failure.
Browse files Browse the repository at this point in the history
Addressing
Errors during downloading metadata for repository 'rawhide':
  - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [getaddrinfo() thread failed to start]
Error: Failed to download metadata for repo 'rawhide': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64 [getaddrinfo() thread failed to start]
  • Loading branch information
adelton committed Sep 7, 2021
1 parent c7a630e commit 020c525
Showing 1 changed file with 17 additions and 33 deletions.
50 changes: 17 additions & 33 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ fedora-rawhide, fedora-34, fedora-33, centos-8, centos-8-stream, centos-7 ]
os: [ fedora-rawhide ]
docker: [ docker ]
exclude:
- os: fedora-rawhide
docker: docker
include:
- os: fedora-rawhide
docker: podman
steps:
- uses: actions/checkout@v2
- name: Build image
run: docker build -t local/freeipa-server:${{ matrix.os }} -f Dockerfile.${{ matrix.os }} .
run: ${{ matrix.docker }} build -t local/freeipa-server:${{ matrix.os }} -f Dockerfile.${{ matrix.os }} .
- name: File issue if building image failed
if: ${{ failure() && github.event_name == 'schedule' }}
run: |
Expand All @@ -37,9 +44,9 @@ jobs:
- name: Create directory for artifacts
run: mkdir freeipa-server-${{ matrix.os }}
- name: Save image
run: docker save local/freeipa-server:${{ matrix.os }} | gzip > freeipa-server-${{ matrix.os }}/freeipa-server-${{ matrix.os }}.tar.gz
run: ${{ matrix.docker }} save local/freeipa-server:${{ matrix.os }} | gzip > freeipa-server-${{ matrix.os }}/freeipa-server-${{ matrix.os }}.tar.gz
- name: Get FreeIPA version
run: docker run --rm --entrypoint rpm local/freeipa-server:${{ matrix.os }} -qf --qf '%{version}\n' /usr/sbin/ipa-server-install > freeipa-server-${{ matrix.os }}/freeipa-server-${{ matrix.os }}.version
run: ${{ matrix.docker }} run --rm --entrypoint rpm local/freeipa-server:${{ matrix.os }} -qf --qf '%{version}\n' /usr/sbin/ipa-server-install > freeipa-server-${{ matrix.os }}/freeipa-server-${{ matrix.os }}.version
- uses: actions/upload-artifact@v2
with:
name: freeipa-server-${{ matrix.os }}
Expand All @@ -53,24 +60,9 @@ jobs:
fail-fast: false
matrix:
include:
- os: fedora-34
- os: fedora-34
readonly: --read-only
- os: fedora-34
readonly: --read-only
ca: --external-ca
- os: fedora-rawhide
- os: centos-8
- os: centos-8
readonly: --read-only
- os: centos-8
readonly: --read-only
ca: --external-ca
- os: centos-8-stream
readonly: --read-only
- os: centos-7
protected_regular: unset
os: [ fedora-33 ]
- os: fedora-rawhide
seccomp: unconfined
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
Expand All @@ -94,7 +86,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ fedora-34, centos-8, centos-8-stream ]
os: [ fedora-rawhide ]
steps:
- name: Install podman
run: . /etc/os-release && echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add - && sudo apt-get update -y && sudo apt-get install -y podman
Expand All @@ -117,7 +109,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ fedora-34, centos-8, centos-8-stream ]
os: [ fedora-rawhide ]
steps:
- name: Install podman and others
run: . /etc/os-release && echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list && curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add - && sudo apt-get update -y && sudo apt-get install -y podman fuse-overlayfs uidmap slirp4netns
Expand Down Expand Up @@ -145,16 +137,8 @@ jobs:
fail-fast: false
matrix:
include:
- os: fedora-34
- os: fedora-rawhide
data-from: fedora-34
- os: fedora-34
data-from: fedora-33
- os: fedora-34
data-from: fedora-32
- os: centos-8
data-from: centos-8
- os: centos-8-stream
data-from: centos-8
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
Expand All @@ -174,7 +158,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ fedora-rawhide, fedora-34, centos-8, centos-8-stream ]
os: [ fedora-rawhide ]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
Expand Down

0 comments on commit 020c525

Please sign in to comment.