Skip to content

Commit

Permalink
ci: redirect ockam download to aws s3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
metaclips committed Jan 20, 2025
1 parent 6836a41 commit aab2a81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/ockam.rb.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Ockam < Formula

on_macos do
if Hardware::CPU.arm?
url "https://github.com/build-trust/ockam/releases/download/release_tag/ockam.aarch64-apple-darwin"
url "release_url/release_tag/ockam.aarch64-apple-darwin"
sha256 "ockam.aarch64-apple-darwin_sha256_value"

def install
Expand All @@ -19,7 +19,7 @@ class Ockam < Formula
end

if Hardware::CPU.intel?
url "https://github.com/build-trust/ockam/releases/download/release_tag/ockam.x86_64-apple-darwin"
url "release_url/release_tag/ockam.x86_64-apple-darwin"
sha256 "ockam.x86_64-apple-darwin_sha256_value"

def install
Expand All @@ -32,7 +32,7 @@ class Ockam < Formula

on_linux do
if Hardware::CPU.arm?
url "https://github.com/build-trust/ockam/releases/download/release_tag/ockam.aarch64-unknown-linux-musl"
url "release_url/release_tag/ockam.aarch64-unknown-linux-musl"
sha256 "ockam.aarch64-unknown-linux-musl_sha256_value"

def install
Expand All @@ -43,7 +43,7 @@ class Ockam < Formula
end

if Hardware::CPU.intel?
url "https://github.com/build-trust/ockam/releases/download/release_tag/ockam.x86_64-unknown-linux-musl"
url "release_url/release_tag/ockam.x86_64-unknown-linux-musl"
sha256 "ockam.x86_64-unknown-linux-musl_sha256_value"

def install
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-bump-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
name: Update Home Brew Version
runs-on: ubuntu-20.04
environment: release
env:
RELEASE_URL: "https://downloads.ockam.io/command"
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
Expand All @@ -48,6 +50,8 @@ jobs:
cp .github/ockam.rb.template $temp_dir/ockam.rb
cd $temp_dir
sed -i "s/release_url/${{ env.RELEASE_URL }}/g" ockam.rb
binaries=(${{ github.event.inputs.binaries }})
for binary in ${binaries[@]}; do
Expand Down

0 comments on commit aab2a81

Please sign in to comment.