💃 Use pre-built containers

Now that containers are being built daily in GitHub Actions from
the container[0] repository, we can use those containers. That will
speed up the GitHub Actions for osbuild and reduce errors from
unreleased Fedora versions.

[0] https://github.com/osbuild/containers

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-03-24 15:38:29 -05:00 committed by David Rheinsberg
parent dedc801688
commit 3233093045

View file

@ -85,17 +85,15 @@ jobs:
strategy:
fail-fast: false
matrix:
fedora_release: ["31", "32", "rawhide"]
fedora_release: ["31", "32", "33"]
container:
image: "docker.io/library/fedora:${{ matrix.fedora_release }}"
image: "quay.io/osbuild/osbuild-fedora${{ matrix.fedora_release }}:latest"
steps:
- name: "📥 Prepare container"
run: |
echo "fastestmirror=1" >> /etc/dnf/dnf.conf
echo "install_weak_deps=0" >> /etc/dnf/dnf.conf
rm -fv /etc/yum.repos.d/fedora*modular*
dnf -y upgrade
dnf -y install dnf-plugins-core findutils git make rpm-build rpmdevtools
- name: "🗄️ Clone the repository"
uses: actions/checkout@v2