You've already forked fedora-bootc
Attempt: Add custom containers-policy.json
Some checks failed
Build container image / Build and push image (push) Failing after 2m12s
Some checks failed
Build container image / Build and push image (push) Failing after 2m12s
This commit is contained in:
@@ -5,6 +5,10 @@ set -ouex pipefail
|
|||||||
# Copy System Files onto root
|
# Copy System Files onto root
|
||||||
rsync -rvK /ctx/sys_files/ /
|
rsync -rvK /ctx/sys_files/ /
|
||||||
|
|
||||||
|
# Copy cosign.pub key into the right location
|
||||||
|
mkdir -p /etc/pki/containers
|
||||||
|
cp /ctx/cosign.pub /etc/pki/containers/davejansen.pub
|
||||||
|
|
||||||
### Install packages
|
### Install packages
|
||||||
|
|
||||||
# Packages can be installed from any enabled yum repo on the image.
|
# Packages can be installed from any enabled yum repo on the image.
|
||||||
|
|||||||
32
sys_files/usr/etc/containers/policy.json
Normal file
32
sys_files/usr/etc/containers/policy.json
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"default": [
|
||||||
|
{
|
||||||
|
"type": "reject"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transports": {
|
||||||
|
"docker": {
|
||||||
|
"davejansen.dev": [
|
||||||
|
{
|
||||||
|
"type": "sigstoreSigned",
|
||||||
|
"keyPaths": ["/etc/pki/containers/davejansen.pub"],
|
||||||
|
"signedIdentity": {
|
||||||
|
"type": "matchRepository"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"type": "insecureAcceptAnything"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"docker-daemon": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"type": "insecureAcceptAnything"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user