Skip to content

Commit

Permalink
fix(action): Set entrypoint to bash when retrieving container ID
Browse files Browse the repository at this point in the history
An image may not define an entrypoint in which case we need to define one
  • Loading branch information
EyeCantCU committed Jan 11, 2024
1 parent b4bf711 commit c6ce092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
- name: Sign kernel
shell: bash
run: |
CONTAINER_ID=$(podman run --replace --name "${{ inputs.image }}" -dt "${{ inputs.image }}")
CONTAINER_ID=$(podman run --entrypoint /bin/bash --replace --name "${{ inputs.image }}" -dt "${{ inputs.image }}")
podman cp "${{ github.action_path }}"/sign-kernel.sh "${{ inputs.image }}":/tmp/sign-kernel.sh
podman exec -e PRIVKEY="${{ inputs.privkey }}" -e PUBKEY="${{ inputs.pubkey }}" "${{ inputs.image }}" "/tmp/sign-kernel.sh"
for TAG in $TAGS; do
Expand Down

0 comments on commit c6ce092

Please sign in to comment.