Skip to content

Commit

Permalink
Merge branch 'main' into switch-from-yq-to-jq
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftydinar authored Dec 1, 2024
2 parents 66c0fd9 + ab654c9 commit c20a6f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/signing/signing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jq --arg image_registry "$IMAGE_REGISTRY" \
--arg image_name "$IMAGE_NAME" \
--arg image_name_file "$IMAGE_NAME_FILE" \
'.transports.docker |=
{($image_registry + "/" + $image_name): [
{ ($image_registry + "/" + $image_name): [
{
"type": "sigstoreSigned",
"keyPath": "/etc/pki/containers/" + $image_name_file + ".pub",
"keyPath": ("/etc/pki/containers/" + $image_name_file + ".pub"),
"signedIdentity": {
"type": "matchRepository"
}
}
]} + .' "$POLICY_FILE" > /tmp/tmp-policy.json && mv /tmp/tmp-policy.json "$POLICY_FILE"
] } + .' "$POLICY_FILE" > /tmp/tmp-policy.json && mv /tmp/tmp-policy.json "$POLICY_FILE"

mv "$MODULE_DIRECTORY/signing/registry-config.yaml" "$CONTAINER_DIR/registries.d/$IMAGE_NAME_FILE.yaml"
sed -i "s ghcr.io/IMAGENAME $IMAGE_REGISTRY g" "$CONTAINER_DIR/registries.d/$IMAGE_NAME_FILE.yaml"

0 comments on commit c20a6f4

Please sign in to comment.