name: Build RPM description: "Builds rpm for given spec file" inputs: spec-file-path: description: "Path to spec file for rpm" required: true runs: 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 }} ACTION_ROOT: ${{ gitea.action_path }} run: | SPEC_FILE_NAME=$(basename ${SPEC_FILE_PATH}) podman run --rm \ -v ./rpmbuild:/root/rpmbuild:rw,z \ -v ${ACTION_ROOT}/entrypoint.sh:/root/entrypoint.sh:ro,z \ -w /root \ fedora:latest \ /root/entrypoint.sh /root/rpmbuild/SPECS/${SPEC_FILE_NAME}