Skip to content

Commit

Permalink
Migrated to fedora-minimal docker container for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed Aug 4, 2024
1 parent 86fdd16 commit ffa720c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/fedora-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/fedora-copr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
fedora-copr:
container: fedora:latest
container: registry.fedoraproject.org/fedora-minimal:latest
runs-on: ubuntu-latest

steps:
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffa720c

Please sign in to comment.