Compare commits
2 Commits
1090f1002a
...
011be46064
| Author | SHA1 | Date | |
|---|---|---|---|
| 011be46064 | |||
| be8010a744 |
@@ -1,9 +0,0 @@
|
|||||||
FROM fedora:latest
|
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
|
||||||
|
|
||||||
RUN dnf -y install rpmdevtools
|
|
||||||
|
|
||||||
RUN rpmdev-setuptree
|
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
A gitea action to build rpm with a given spec file.
|
A gitea action to build rpm with a given spec file.
|
||||||
|
|
||||||
Requires toolbox and its dependencies.
|
Make sure that podman is installed
|
||||||
|
|||||||
26
action.yml
26
action.yml
@@ -6,7 +6,25 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "docker"
|
using: "composite"
|
||||||
image: "Dockerfile"
|
steps:
|
||||||
args:
|
- name: Setup workspace
|
||||||
- ${{ inputs.spec-file-path }}
|
shell: bash
|
||||||
|
env:
|
||||||
|
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
|
||||||
|
run: |
|
||||||
|
mkdir -p ./rpmbuild/{RPMS,SPECS}
|
||||||
|
cp ${SPEC_FILE_PATH} ./rpmbuild/SPECS
|
||||||
|
|
||||||
|
- name: Build RPM
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
|
||||||
|
run: |
|
||||||
|
SPEC_FILE_NAME=$(basename ${SPEC_FILE_PATH})
|
||||||
|
podman run --rm \
|
||||||
|
-v ./rpmbuild:/root/rpmbuild:rw,z \
|
||||||
|
-v ./entrypoint.sh:/root/entrypoint.sh:ro,z \
|
||||||
|
-w /root \
|
||||||
|
fedora:latest \
|
||||||
|
/root/entrypoint.sh /root/rpmbuild/SPECS/${SPEC_FILE_NAME}
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
#!/bin/sh -l
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
toolbox run rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
|
dnf -y config-manager --add-repo https://git.hydrosaber.com/api/packages/hydros/rpm/f43.repo
|
||||||
|
|
||||||
|
dnf -y install rpmdevtools
|
||||||
|
rpmdev-setuptree
|
||||||
|
|
||||||
|
dnf -y builddep $1
|
||||||
|
|
||||||
|
rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
|
||||||
rpmbuild --nodebuginfo --bb $1
|
rpmbuild --nodebuginfo --bb $1
|
||||||
|
|||||||
Reference in New Issue
Block a user