Skip to content

Commit

Permalink
fix(action): Pass tags used by container
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Jan 4, 2024
1 parent 22268e5 commit 8611bb2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
description: 'Public key, path to public key, or URL to retrieve public key'
default: '/etc/pki/kernel/public/public_key.der'
required: true
tags:
description: 'Tags used by container'
default: 'latest'
required: true
runs:
using: "composite"
steps:
Expand All @@ -22,5 +26,9 @@ runs:
CONTAINER_ID=$(podman run --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"
buildah commit "$CONTAINER_ID" "${{ inputs.image }}"
for TAG in $TAGS; do
buildah commit "$CONTAINER_ID" "${{ inputs.image }}":"$TAG"
done
podman container list
env:
TAGS: ${{ inputs.tags }}

0 comments on commit 8611bb2

Please sign in to comment.