Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Jul 23, 2023
1 parent 869cb7e commit b31a5e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ fi
echo "Setup container signing in policy.json and cosign.yaml"
echo "Registry to write: $IMAGE_REGISTRY"

POLICY=$(jq '.transports.docker."${IMAGE_REGISTRY}" |=[{
POLICY=$(jq '.transports.docker."${IMAGE_REGISTRY}" += [{
"type": "sigstoreSigned",
"keyPath": "/usr/etc/pki/containers/cosign.pub",
"signedIdentity": {
"type": "matchRepository"
}
}] + .' /usr/etc/containers/policy.json)
}]' /usr/etc/containers/policy.json)

echo $POLICY > /usr/etc/containers/policy.json
printf $POLICY > /usr/etc/containers/policy.json

cat /usr/etc/containers/policy.json

Expand Down

0 comments on commit b31a5e7

Please sign in to comment.