| Matthias Andreas Benkard | 0bdf710 | 2026-11-14 21:38:43 +0100 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | set -e |
| 3 | |
| 4 | name=$1 |
| 5 | namespace=${2:-mulk} |
| 6 | |
| 7 | #registry=mulk.registry.k8s.benkard.de |
| 8 | registry=docker.benkard.de |
| 9 | |
| 10 | # Build and push in one step. The registry (registry/2.0 behind Portus) |
| 11 | # rejects OCI manifests and attestation indexes with "manifest invalid", so |
| 12 | # disable provenance/SBOM attestations and push Docker media types. |
| 13 | docker buildx build \ |
| 14 | --platform=linux/amd64 \ |
| 15 | --provenance=false \ |
| 16 | --sbom=false \ |
| 17 | --output "type=image,name=$registry/$namespace/$name,push=true,oci-mediatypes=false" \ |
| 18 | . |