Migrated to fedora-minimal docker container for GitHub Actions

This commit is contained in:
Erik Reider 2024-08-04 17:17:49 +02:00
parent 86fdd16baf
commit ffa720c4f3
3 changed files with 11 additions and 9 deletions

View File

@ -11,15 +11,14 @@ on:
jobs:
fedora-build:
container: fedora:latest
container: registry.fedoraproject.org/fedora-minimal:latest
runs-on: ubuntu-latest
steps:
- name: Install tooling for source RPM build
run: |
dnf -y install @development-tools @rpm-development-tools
dnf -y install rpkg git
dnf -y install 'dnf-command(builddep)'
microdnf -y install --nodocs --setopt=install_weak_deps=0 \
@development-tools @rpm-development-tools rpkg git 'dnf-command(builddep)'
# It is necessary to checkout into sub-directory, because of some weird ownership problems cause by using containers
- name: Check out sources
@ -42,7 +41,7 @@ jobs:
- name: Install build dependencies
run: |
cd swaync
dnf -y builddep ./specs/swaync.rpkg.spec
microdnf -y builddep ./specs/swaync.rpkg.spec
- name: Local build
run: |

View File

@ -9,7 +9,7 @@ on:
jobs:
fedora-copr:
container: fedora:latest
container: registry.fedoraproject.org/fedora-minimal:latest
runs-on: ubuntu-latest
steps:
@ -29,7 +29,8 @@ jobs:
- name: Install tooling for source RPM build
run: |
dnf -y install copr-cli rpkg git
microdnf -y install --nodocs --setopt=install_weak_deps=0 \
copr-cli rpkg git
# It is necessary to checkout into sub-directory, because of some weird ownership problems cause by using containers
- name: Check out sources

View File

@ -25,11 +25,13 @@ jobs:
fail: true
rpmlint:
container: fedora:latest
container: registry.fedoraproject.org/fedora-minimal:latest
runs-on: ubuntu-latest
steps:
- name: Install rpmlint
run: dnf -y install rpmlint rpkg
run: |
microdnf -y install --nodocs --setopt=install_weak_deps=0 \
rpmlint rpkg
- name: Check out sources
uses: actions/checkout@v3