Remove dockerfile, using podman with latest snippet of working action
This commit is contained in:
26
action.yml
26
action.yml
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user