Fix mock repo injection: use --shell instead of --copyin
This commit is contained in:
parent
abae2a5400
commit
5820feee12
1 changed files with 2 additions and 3 deletions
|
|
@ -50,14 +50,13 @@ jobs:
|
||||||
|
|
||||||
- name: Build RPM with mock
|
- name: Build RPM with mock
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://pc-rytteren.dk/forge/api/packages/anders/rpm.repo \
|
|
||||||
-o /tmp/sonicde.repo
|
|
||||||
mock \
|
mock \
|
||||||
--root alma+epel-10-x86_64 \
|
--root alma+epel-10-x86_64 \
|
||||||
--init
|
--init
|
||||||
|
REPO_CONTENT=$(curl -fsSL https://pc-rytteren.dk/forge/api/packages/anders/rpm.repo)
|
||||||
mock \
|
mock \
|
||||||
--root alma+epel-10-x86_64 \
|
--root alma+epel-10-x86_64 \
|
||||||
--copyin /tmp/sonicde.repo /etc/yum.repos.d/sonicde.repo
|
--shell "echo '${REPO_CONTENT}' > /etc/yum.repos.d/sonicde.repo"
|
||||||
mock \
|
mock \
|
||||||
--root alma+epel-10-x86_64 \
|
--root alma+epel-10-x86_64 \
|
||||||
--resultdir "${HOME}/mock-results" \
|
--resultdir "${HOME}/mock-results" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue