From c6201297174c9b4b41bacc3c3b4bfa89dab6596d Mon Sep 17 00:00:00 2001 From: chenhuan Date: Tue, 3 Nov 2026 01:19:35 +0000 Subject: [PATCH] =?UTF-8?q?fix(ci):=20Harbor=20=E5=AD=98=E5=9C=A8=E6=80=A7?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=20Accept=20=E8=A1=A5=20OCI=20=E5=AA=92?= =?UTF-8?q?=E4=BD=93=E7=B1=BB=E5=9E=8B=E2=80=94=E2=80=94CI=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=98=AF=20OCI=20index,=E4=BB=85=20docker=20schema2?= =?UTF-8?q?=20=E4=BC=9A=20404=20MANIFEST=5FUNKNOWN(=E4=BC=91=E7=9C=A0?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=A2=AB=20secrets=20=E8=A1=A5=E9=BD=90?= =?UTF-8?q?=E5=90=8E=E9=A6=96=E6=AC=A1=E6=89=A7=E8=A1=8C=E6=9A=B4=E9=9C=B2?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/promote.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/promote.sh b/ci/promote.sh index fc07439..847112f 100755 --- a/ci/promote.sh +++ b/ci/promote.sh @@ -392,7 +392,10 @@ elif explicit: for repo in e["repos"]: url = f"http://{HARBOR_HOST}/v2/mixingx/{repo}/manifests/{e['harborTag']}" req = urllib.request.Request(url, headers={ - "Accept": "application/vnd.docker.distribution.manifest.v2+json", + "Accept": ("application/vnd.oci.image.index.v1+json, " + "application/vnd.oci.image.manifest.v1+json, " + "application/vnd.docker.distribution.manifest.v2+json, " + "application/vnd.docker.distribution.manifest.list.v2+json"), "Authorization": f"Basic {auth}"}) try: with urllib.request.urlopen(req, timeout=15) as r: