Skip to content

Commit

Permalink
fix(action): Copy kernel signing script to container's tmp dir, don't…
Browse files Browse the repository at this point in the history
… pass PWD
  • Loading branch information
EyeCantCU committed Dec 31, 2023
1 parent 99ac428 commit f6354d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ runs:
shell: bash
run: |
CONTAINER_ID=$(podman run --replace --name ${{ inputs.image }} -dt ${{ inputs.image }})
podman exec -e PRIVKEY=${{ inputs.privkey }} -e PUBKEY=${{ inputs.pubkey }} -w $PWD $CONTAINER_ID ./sign-kernel.sh
podman cp ./sign-kernel.sh ${{ inputs.image }}:/tmp/sign-kernel.sh
podman exec -e PRIVKEY=${{ inputs.privkey }} -e PUBKEY=${{ inputs.pubkey }} $CONTAINER_ID /tmp/sign-kernel.sh
buildah commit $CONTAINER_ID ${{ inputs.image }}

0 comments on commit f6354d5

Please sign in to comment.