tangled
alpha
login
or
join now
tangled.org
/
knot-docker
89
fork
atom
Community maintained Docker config for the knot server
89
fork
atom
overview
issues
3
pulls
1
pipelines
policy config
knotbin.com
6 months ago
c04c6888
158f2271
1/1
publish.yml
success
3s
+22
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
publish.yml
+22
.tangled/workflows/publish.yml
···
118
118
exit 1
119
119
fi
120
120
121
121
+
# Create skopeo trust policy file
122
122
+
mkdir -p ~/.config/containers /etc/containers
123
123
+
cat > ~/.config/containers/policy.json << EOF
124
124
+
{
125
125
+
"default": [
126
126
+
{
127
127
+
"type": "insecureAcceptAnything"
128
128
+
}
129
129
+
],
130
130
+
"transports": {
131
131
+
"docker-daemon": {
132
132
+
"": [
133
133
+
{
134
134
+
"type": "insecureAcceptAnything"
135
135
+
}
136
136
+
]
137
137
+
}
138
138
+
}
139
139
+
}
140
140
+
EOF
141
141
+
cp ~/.config/containers/policy.json /etc/containers/policy.json 2>/dev/null || true
142
142
+
121
143
# Export buildah image to docker format
122
144
buildah push localhost/$DOCKER_USERNAME/$DOCKER_REPO:$TAG docker-archive:image-$TAG.tar
123
145
buildah push localhost/$DOCKER_USERNAME/$DOCKER_REPO:latest docker-archive:image-latest.tar