Skip to content

Commit

Permalink
fix mirror script
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Nov 21, 2023
1 parent 5bbd789 commit fffde0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions oci/private/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ CRANE_VERSIONS = {
}

ZOT_VERSIONS = {
"v2.0.0-rc6": {
"darwin-amd64": "sha256-xhVEtIP5XnTsf2VaRZLCENtKccMMuBUZT74QLNgrPzE=",
"darwin-arm64": "sha256-/Xt3lh+34kSLb/Uz97pUrjbNjwpBQZHTE1UYdeaY1Bo=",
"linux-amd64": "sha256-qAfQrNAzkCRYXcZcL7zGUbhpXGz1v0os2Zk2teJC43U=",
"linux-arm64": "sha256-41aPaoiSB0/kHNepRWpEURYIHMEtcNo6LJh7vhL/XqY="
"v2.0.0-rc7": {
"darwin-amd64": "sha256-CgQgQBbT2MDf9H9ttWZXSCP1SJfHvI1U1JX8WcExsqc=",
"darwin-arm64": "sha256-z+7Tn1mhAfvx9JlAeMq2WxtpMx6lcLjvycUhSAANX1U=",
"freebsd-amd64": "sha256-ex4IzW3299cegSnW2Q4LCk/sBJfaIPIxzujo1ocWnRY=",
"freebsd-arm64": "sha256-byEVM7MsYNNfC94bmqxCG+VyP1CoMVPQgfQEyVQro7M=",
"linux-amd64": "sha256-pAiaOvyD+Tvi/d6MGAFytJFmYYttCukucxaxbAmnX5w=",
"linux-arm64": "sha256-+TLMTCs+eYPmxWAbbvb2PFNwGvHsMI40yxeY3wVGepM="
}
}
2 changes: 1 addition & 1 deletion scripts/mirror_releases_zot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ INFO="$(curl --silent -H "Accept: application/vnd.github.v3+json" https://api.gi
# TODO: remove this for loop once https://github.com/project-zot/zot/issues/715 is fixed.
for VERSION in $(jq -r 'keys | join("\n")' <<< $INFO); do
for PLATFORM in $(jq -r ".[\"$VERSION\"] | keys | join(\"\n\")" <<< $INFO); do
SHA256=$(curl -fLs "https://github.com/project-zot/zot/releases/download/$VERSION/zot-$PLATFORM" | shasum -a 256 | xxd -r -p | base64)
SHA256=$(curl -fLs "https://github.com/project-zot/zot/releases/download/$VERSION/zot-$PLATFORM-minimal" | shasum -a 256 | xxd -r -p | base64)
INFO=$(jq ".[\"$VERSION\"][\"$PLATFORM\"] = \"sha256-$SHA256\"" <<< $INFO)
done
done
Expand Down

0 comments on commit fffde0c

Please sign in to comment.