Skip to content

Commit 376a8b7

Browse files
committed
use oci-mediatypes
when we were pushing these before, the registry was not getting their manifests properly. exporting these with `OCI-mediatypes` true produces a good manifest. this will eventually be the default, see moby/buildkit#6171 and moby/buildkit#6095
1 parent 61f78ac commit 376a8b7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

operators/bake.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,15 @@ build_operators() {
8686

8787
if [ -n "$TARGET" ]; then
8888
cmd+=("$TARGET")
89-
cmd+=(--provenance=false)
9089
else
9190
cmd+=(operators)
9291
fi
9392

93+
cmd+=(--provenance=false)
94+
95+
# https://docs.docker.com/build/exporters/image-registry/
96+
# https://docs.docker.com/reference/cli/docker/buildx/build/#output
97+
cmd+=(--set "*.output=type=registry,oci-mediatypes=true")
9498
cmd+=(--file "$BAKE_FILE")
9599
cmd+=(--file "$VARS")
96100

@@ -105,15 +109,12 @@ build_operators() {
105109
fi
106110
fi
107111
done
108-
112+
109113
# Check if we found any labels
110114
if [ "$has_labels" = false ]; then
111115
echo "No operator.json files found or all are empty."
112116
return 1
113117
fi
114-
115-
cmd+=(--push)
116-
117118

118119
if $DRY_RUN; then
119120
cmd+=(--print)

0 commit comments

Comments
 (0)