From 3a07d44580919c6d7f994d89fb34c4e577ee8645 Mon Sep 17 00:00:00 2001 From: Jason Bright Date: Thu, 16 Nov 2023 16:59:56 -0500 Subject: [PATCH] update docs to have working oras examples (#324) The push and pull examples do not work with the current cli. The latest oras documentation describes the use of the `--config` option for the [push](https://oras.land/docs/commands/oras_push) and [pull](https://oras.land/docs/commands/oras_pull) commands. This parameter change (rename the `--manifest-config` to `--config`) was [documented as a breaking change](https://github.com/oras-project/oras/releases/tag/v0.14.0) in version 0.14.0 of the ORAS CLI, which was released in August 2022. --- _implementors/features-distribution.md | 4 ++-- _implementors/templates-distribution.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_implementors/features-distribution.md b/_implementors/features-distribution.md index 04db312e..6ef56cfc 100644 --- a/_implementors/features-distribution.md +++ b/_implementors/features-distribution.md @@ -116,7 +116,7 @@ ARTIFACT_PATH=devcontainer-feature-go.tgz for VERSION in 1 1.2 1.2.3 latest do oras push ${REGISTRY}/${NAMESPACE}/${FEATURE}:${VERSION} \ - --manifest-config /dev/null:application/vnd.devcontainers \ + --config /dev/null:application/vnd.devcontainers \ ./${ARTIFACT_PATH}:application/vnd.devcontainers.layer.v1+tar done ``` @@ -131,7 +131,7 @@ REGISTRY=ghcr.io NAMESPACE=devcontainers/features oras push ${REGISTRY}/${NAMESPACE}:latest \ - --manifest-config /dev/null:application/vnd.devcontainers \ + --config /dev/null:application/vnd.devcontainers \ ./devcontainer-collection.json:application/vnd.devcontainers.collection.layer.v1+json ``` diff --git a/_implementors/templates-distribution.md b/_implementors/templates-distribution.md index 2bd9480e..6e6f0f21 100644 --- a/_implementors/templates-distribution.md +++ b/_implementors/templates-distribution.md @@ -113,7 +113,7 @@ ARTIFACT_PATH=devcontainer-template-go.tgz for VERSION in 1 1.2 1.2.3 latest do oras push ${REGISTRY}/${NAMESPACE}/${TEMPLATE}:${VERSION} \ - --manifest-config /dev/null:application/vnd.devcontainers \ + --config /dev/null:application/vnd.devcontainers \ ./${ARTIFACT_PATH}:application/vnd.devcontainers.layer.v1+tar done @@ -129,7 +129,7 @@ REGISTRY=ghcr.io NAMESPACE=devcontainers/templates oras push ${REGISTRY}/${NAMESPACE}:latest \ - --manifest-config /dev/null:application/vnd.devcontainers \ + --config /dev/null:application/vnd.devcontainers \ ./devcontainer-collection.json:application/vnd.devcontainers.collection.layer.v1+json ```