@yunuseon/kayra 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yunuseon/kayra",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "A self-hosted app platform and the CLI that runs it: Traefik, Authelia, a registry, rootless BuildKit and a small deployer per server, set up with OpenTofu and Ansible.",
5
5
  "license": "MIT",
6
6
  "author": "Yunus Öztürk",
@@ -79,9 +79,14 @@ ensure() {
79
79
  [ -n "$manifest" ] || { echo "ERROR: no artifact $1 under ${root}" >&2; return 1; }
80
80
  read_manifest "$manifest"
81
81
 
82
+ # Every manifest type a push may leave, as registry-gc.sh asks: BuildKit
83
+ # pushes OCI manifests, and registry:2 answers 404 to a request that does
84
+ # not accept the type it holds — every image would look missing.
82
85
  local status
83
86
  status=$(curl -s -o /dev/null -w '%{http_code}' \
84
87
  -H 'Accept: application/vnd.oci.image.index.v1+json' \
88
+ -H 'Accept: application/vnd.oci.image.manifest.v1+json' \
89
+ -H 'Accept: application/vnd.docker.distribution.manifest.list.v2+json' \
85
90
  -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' \
86
91
  "http://${REGISTRY_PUSH_HOST}/v2/${image}/manifests/${tag}" || echo 000)
87
92
  if [ "$status" = "200" ]; then