| #! /bin/bash | |
| set -e | |
| name=$1 | |
| namespace=${2:-mulk} | |
| #registry=mulk.registry.k8s.benkard.de | |
| registry=docker.benkard.de | |
| # Build and push in one step. The registry (registry/2.0 behind Portus) | |
| # rejects OCI manifests and attestation indexes with "manifest invalid", so | |
| # disable provenance/SBOM attestations and push Docker media types. | |
| docker buildx build \ | |
| --platform=linux/amd64 \ | |
| --provenance=false \ | |
| --sbom=false \ | |
| --output "type=image,name=$registry/$namespace/$name,push=true,oci-mediatypes=false" \ | |
| . |