Commit graph

14 commits

Author SHA1 Message Date
d357aae360 Fix mock: use custom config with extra repos instead of --shell injection
The --init/--shell/--no-clean approach caused a corrupted RPM database
in the chroot. Instead, generate a custom mock config that includes
both the Forgejo package registry and the xlibre Copr repos directly
in config_opts['yum.conf'] before the chroot is created. This is the
standard, reliable way to add extra repositories to mock.
2026-05-27 13:14:52 -03:00
b868b75011 Add Copr xlibre-xserver repo to mock chroot for build deps
sonic-win.spec requires xlibre-xserver-devel which is only available in
the xlibre Copr repository. Download and inject this alongside the
existing Forgejo package registry repo before mock --rebuild.
2026-05-27 13:10:25 -03:00
de70b9ccc0 Fix mock --shell: create /etc/yum.repos.d with mkdir -p before writing repo file 2026-05-27 13:05:00 -03:00
5820feee12 Fix mock repo injection: use --shell instead of --copyin 2026-05-27 13:00:59 -03:00
abae2a5400 add own repo 2026-05-27 12:57:40 -03:00
17dcd83976 Also clean up SRPMS directory after build 2026-05-27 12:52:07 -03:00
20a249a768 Add Forgejo Actions workflow to build RPMs with mock
- Build all three spec files on push via matrix strategy
- Use mock (alma+epel-10-x86_64) for clean isolated buildroot
- Inject Forgejo Package Registry as DNF repo inside mock chroot
- Derive exact SRPM path from rpmspec to avoid stale package matches
- Upload built RPMs to Forgejo Package Registry
- Clean up mock-results after each job (always)
- Bump all specs to 6.6.4-1 and fix Source0 tag (drop v-prefix)
2026-05-27 12:49:53 -03:00
02e484411c use alma+epel 2026-05-27 12:28:14 -03:00
71458745d9 Upgrade to 6.6.4
Some checks failed
Build RPMs / build (sonic-interface-libraries.spec) (push) Failing after 21s
Build RPMs / build (sonic-win.spec) (push) Failing after 22s
Build RPMs / build (sonic-workspace.spec) (push) Failing after 19s
2026-05-27 12:23:52 -03:00
f7e5b1e324 use mock instead 2026-05-27 12:19:07 -03:00
7910fb076b fix runner name 2026-05-27 11:58:52 -03:00
d6b4c4948a build rpm packages 2026-05-27 11:56:14 -03:00
5e82f9fb9b Add EL 10.1 version 2026-05-27 11:46:26 -03:00
1bc48111cd Initial commit 2026-05-27 14:36:26 +00:00