Skip to content

Commit

Permalink
fix(packages/scripts): update to adjust new oras version
Browse files Browse the repository at this point in the history
From oras v1.2.0, there's a break change for cli option of sub command `discover`.
Ref: https://github.com/oras-project/oras/releases/tag/v1.2.0

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed Jul 9, 2024
1 parent 609c035 commit 78d8678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/scripts/build-package-artifacts.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function write_push_results() {
# Login steps:
# local registry=$(echo "${destination}" | cut -d/ -f)
# oras login -u ${ORAS_USER} -p ${ORAS_PASSWD} ${registry}
digest="$(oras discover "${destination}" --distribution-spec v1.1-referrers-tag -o tree | cut -d@ -f2)"
digest="$(oras discover "${destination}" --distribution-spec v1.1-referrers-tag --format tree | cut -d@ -f2)"
cat <<EOF > "$result_file"
oci:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function write_push_results() {
# Login steps:
# local registry=$(echo "${destination}" | cut -d/ -f)
# oras login -u ${ORAS_USER} -p ${ORAS_PASSWD} ${registry}
digest="$(oras discover "${destination}" --distribution-spec v1.1-referrers-tag -o tree | cut -d@ -f2)"
digest="$(oras discover "${destination}" --distribution-spec v1.1-referrers-tag --format tree | cut -d@ -f2)"

cat <<EOF > "$result_file"
oci:
Expand Down

0 comments on commit 78d8678

Please sign in to comment.