Use action_path to add entrypoint
This commit is contained in:
@@ -20,11 +20,12 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
|
SPEC_FILE_PATH: ${{ inputs.spec-file-path }}
|
||||||
|
ACTION_ROOT: ${{ gitea.action_path }}
|
||||||
run: |
|
run: |
|
||||||
SPEC_FILE_NAME=$(basename ${SPEC_FILE_PATH})
|
SPEC_FILE_NAME=$(basename ${SPEC_FILE_PATH})
|
||||||
podman run --rm \
|
podman run --rm \
|
||||||
-v ./rpmbuild:/root/rpmbuild:rw,z \
|
-v ./rpmbuild:/root/rpmbuild:rw,z \
|
||||||
-v ./entrypoint.sh:/root/entrypoint.sh:ro,z \
|
-v ${ACTION_ROOT}/entrypoint.sh:/root/entrypoint.sh:ro,z \
|
||||||
-w /root \
|
-w /root \
|
||||||
fedora:latest \
|
fedora:latest \
|
||||||
/root/entrypoint.sh /root/rpmbuild/SPECS/${SPEC_FILE_NAME}
|
/root/entrypoint.sh /root/rpmbuild/SPECS/${SPEC_FILE_NAME}
|
||||||
|
|||||||
Reference in New Issue
Block a user