Skip to content

Commit

Permalink
fix(action): Only pull if missing from local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU authored May 18, 2024
1 parent c6cd4d5 commit 4fa410e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ runs:
- name: Sign kernel
shell: bash
run: |
podman pull "${{ inputs.image }}"
CONTAINER_ID=$(podman run --entrypoint /bin/bash --replace --name $(basename "${{ inputs.image }}") -dt "${{ inputs.image }}")
CONTAINER_ID=$(podman run --pull missing --entrypoint /bin/bash --replace --name $(basename "${{ inputs.image }}") -dt "${{ inputs.image }}")
podman cp "${{ github.action_path }}"/sign-kernel.sh $(basename "${{ inputs.image }}"):/tmp/sign-kernel.sh
podman exec -e KERNEL_SUFFIX="${{ inputs.kernel_suffix }}" -e PRIVKEY="${{ inputs.privkey }}" -e PUBKEY="${{ inputs.pubkey }}" $(basename "${{ inputs.image }}") "/tmp/sign-kernel.sh"
buildah commit "$CONTAINER_ID" "${{ inputs.image }}"
Expand Down

0 comments on commit 4fa410e

Please sign in to comment.