Remove dockerfile, using podman with latest snippet of working action

This commit is contained in:
2025-11-30 14:22:31 -05:00
parent 1090f1002a
commit be8010a744
3 changed files with 31 additions and 15 deletions

View File

@@ -6,7 +6,25 @@ inputs:
required: true
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.spec-file-path }}
using: "composite"
steps:
- name: Setup workspace
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}