Skip to content

Commit

Permalink
Ensure required version of oras is available
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdchen committed Dec 16, 2024
1 parent 1dc00df commit 02de4eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions appstudio-utils/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions hack/build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 02de4eb

Please sign in to comment.