ci: push images to public Zot over HTTPS [CI SKIP]

This commit is contained in:
justme committed 2026-10-05 16:28:15 +08:00
1 parent 68406843de
commit a7a8212c08
3 files changed
+18 -17

No files matched your search

+3 -3
View File
@@ -9,13 +9,13 @@ version="${CI_COMMIT_TAG#v}"
exit 2
}
registry="${ZOT_REGISTRY:-192.168.2.162:5000}"
scheme="${ZOT_SCHEME:-http}"
registry="${ZOT_REGISTRY:-registry.oeo.one}"
scheme="${ZOT_SCHEME:-https}"
image="monitor/monitor-backend"
auth_file="$(mktemp)"
chmod 600 "$auth_file"
trap 'rm -f "$auth_file"' EXIT
printf 'machine %s login %s password %s\n' "${registry%%:*}" "$ZOT_USERNAME" "$ZOT_PASSWORD" > "$auth_file"
printf 'machine %s login %s password %s\n' "${registry%%:*}" "$ZOT_USERNAME" "$ZOT_SECRET" > "$auth_file"
accept='application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.v2+json, application/vnd.oci.image.index.v1+json, application/vnd.docker.distribution.manifest.list.v2+json'