diff --git a/packages/offline-packages.yaml.tmpl b/packages/offline-packages.yaml.tmpl index 66fc874e..aa66cab8 100644 --- a/packages/offline-packages.yaml.tmpl +++ b/packages/offline-packages.yaml.tmpl @@ -363,7 +363,6 @@ editions: if: {{ semver.CheckConstraint ">=7.6.0-0" .Release.version }} os: [linux] arch: [amd64, arm64] - profile: [enterprise] artifacts: - name: "tidb-enterprise-server-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}" desc: enterprise offline server package @@ -498,7 +497,6 @@ editions: if: {{ semver.CheckConstraint ">=7.5.0-0, <7.6.0-0" .Release.version }} os: [linux] arch: [amd64, arm64] - profile: [enterprise] artifacts: - name: "tidb-enterprise-server-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}" desc: enterprise offline server package diff --git a/packages/scripts/build-package-artifacts.sh.tmpl b/packages/scripts/build-package-artifacts.sh.tmpl index a55b9f33..ebbf5557 100644 --- a/packages/scripts/build-package-artifacts.sh.tmpl +++ b/packages/scripts/build-package-artifacts.sh.tmpl @@ -91,7 +91,7 @@ function fetch_file_from_oci_artifact() { local repo="$(echo $destination | cut -d ':' -f 1)" # get the file blob digest. - oras manifest fetch $destination | yq -e --prettyPrint ".layers | filter(.annotations[\"org.opencontainers.image.title\"] | test \"$to_match_file\") | .[0]" >blob.yaml + oras manifest fetch $destination | yq -e --prettyPrint -oy ".layers | filter(.annotations[\"org.opencontainers.image.title\"] | test \"$to_match_file\") | .[0]" >blob.yaml # download file file="$(yq .annotations[\"org.opencontainers.image.title\"] blob.yaml)" @@ -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 < "$result_file" oci: diff --git a/packages/scripts/compose-offline-packages-artifacts.sh.tmpl b/packages/scripts/compose-offline-packages-artifacts.sh.tmpl index 852aab51..68e2966f 100644 --- a/packages/scripts/compose-offline-packages-artifacts.sh.tmpl +++ b/packages/scripts/compose-offline-packages-artifacts.sh.tmpl @@ -76,7 +76,7 @@ function fetch_file_from_oci_artifact() { local repo="$(echo $destination | cut -d ':' -f 1)" # get the file blob digest. - oras manifest fetch $destination | yq --prettyPrint ".layers | filter(.annotations[\"org.opencontainers.image.title\"] | test \"$to_match_file\") | .[0]" >blob.yaml + oras manifest fetch $destination | yq --prettyPrint -oy ".layers | filter(.annotations[\"org.opencontainers.image.title\"] | test \"$to_match_file\") | .[0]" >blob.yaml # download file file="$(yq .annotations[\"org.opencontainers.image.title\"] blob.yaml)" @@ -92,7 +92,7 @@ function check_file_in_oci_artifact() { oras manifest fetch -o oci_manifest.json $destination # get the file blob digest. - yq -e --prettyPrint ".layers | filter(.annotations[\"org.opencontainers.image.title\"] | test \"$to_match_file\") | length > 0" oci_manifest.json + yq -e --prettyPrint -oy ".layers | filter(.annotations[\"org.opencontainers.image.title\"] | test \"$to_match_file\") | length > 0" oci_manifest.json > /dev/null } function pre_check() { @@ -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 < "$result_file" oci: