Build very small Fedora based container image just for creating and building RPM and also APT repo.
By creating and using this container images, it can save time, resources and energy, because it won't need to update package lists and install dependencies every times when it runs.
I mainly use it on all of my RustDesk repos. (Check my profile)
Build once a month week. (I bump to Fedora 41 early for testing dnf5 changes)
Please refer to Dockerfile.
The latest will be latest
, and a date (yyyymmdd
) tag if you wanna specific environment or testing.
Just add container: ghcr.io/xlionjuan/fedora-createrepo-image:latest
or container: ghcr.io/xlionjuan/fedora-createrepo-image-minimal:latest
after runs-on: ubuntu-latest
, I recommend you to use ubuntu-latest
to ensure the Docker Engine is the latest version.
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/xlionjuan/fedora-createrepo-image-minimal:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
.....
.....
Note: minimal image is using microdnf
instead of dnf
.