diff --git a/appstudio-utils/Dockerfile b/appstudio-utils/Dockerfile index 50acc53f55..a125593696 100755 --- a/appstudio-utils/Dockerfile +++ b/appstudio-utils/Dockerfile @@ -10,6 +10,10 @@ RUN curl -L https://github.com/open-policy-agent/conftest/releases/download/v0.3 RUN curl -L https://github.com/enterprise-contract/ec-cli/releases/download/snapshot/ec_linux_amd64 -o /usr/bin/ec && chmod +x /usr/bin/ec && ec version RUN curl -L https://github.com/cli/cli/releases/download/v2.60.1/gh_2.60.1_linux_amd64.tar.gz | tar -xz -C /usr/bin --wildcards "gh_*/bin/gh" --strip-components=2 --no-same-owner +# 1.2.0 is the minimum required version +RUN curl -L https://github.com/oras-project/oras/releases/download/v1.2.1/oras_1.2.1_linux_amd64.tar.gz | \ + tar -xz --no-same-owner -C /usr/bin oras + RUN dnf -y --setopt=tsflags=nodocs install \ git \ skopeo \ diff --git a/hack/build-and-push.sh b/hack/build-and-push.sh index 73525e4864..8ab12334ec 100755 --- a/hack/build-and-push.sh +++ b/hack/build-and-push.sh @@ -381,6 +381,8 @@ attach_migration_file() { # List attached artifacts, that have specific artifact type and annotation. # Then, find out the migration artifact. + # + # Minimum version oras 1.2.0 is required for option --format artifact_refs=$( retry oras discover "$task_bundle" --artifact-type "$ARTIFACT_TYPE_TEXT_XSHELLSCRIPT" --format json | \ jq -r "