Opt to use docker and dockerfiles to build instead
This commit is contained in:
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM fedora:latest
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
RUN dnf -y rpmdevtools
|
||||||
|
|
||||||
|
RUN rpmdev-setuptree
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
32
action.yml
32
action.yml
@@ -6,31 +6,7 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "docker"
|
||||||
steps:
|
image: "Dockerfile"
|
||||||
- name: Setup toolbox environment
|
args:
|
||||||
shell: bash
|
- ${{ input.spec-file-path }}
|
||||||
run: |
|
|
||||||
toolbox run sudo dnf -y rpmdevtools
|
|
||||||
toolbox run rpmdev-setuptree
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
env:
|
|
||||||
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
toolbox run sudo dnf -y builddep $SPEC_FILE_PATH
|
|
||||||
|
|
||||||
- name: Download Source
|
|
||||||
env:
|
|
||||||
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
toolbox run rpmdev-spectool -g -C ~/rpmbuild/SOURCES $SPEC_FILE_PATH
|
|
||||||
|
|
||||||
- name: Build packages
|
|
||||||
env:
|
|
||||||
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
toolbox run rpmbuild --nodebuginfo --bb $SPEC_FILE_PATH
|
|
||||||
|
|||||||
4
entrypoint.sh
Normal file
4
entrypoint.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh -l
|
||||||
|
|
||||||
|
toolbox run rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
|
||||||
|
rpmbuild --nodebuginfo --bb $1
|
||||||
Reference in New Issue
Block a user