Skip to content

Commit

Permalink
Merge pull request #1 from armory-io/CDAAS-2594
Browse files Browse the repository at this point in the history
chore: point to S3 for new releases
  • Loading branch information
aelath authored Nov 6, 2023
2 parents 9847c4e + 837c2eb commit fcb6af1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/updateCliFormula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: construct base URL
id: constructBaseUrl
run: |
echo "baseUrl='https://github.com/armory-io/armory-cli/releases/download/v${{ github.event.client_payload.version }}/armory'" >> $GITHUB_OUTPUT
echo "baseUrl='https://armory-cli-releases.s3.amazonaws.com/cli/v${{ github.event.client_payload.version }}/armory'" >> $GITHUB_OUTPUT
- name: compute Shas
id: computeShas
run: |
Expand All @@ -39,4 +39,3 @@ jobs:
with:
commit_message: Update CLI Formula to ${{ github.event.client_payload.version }}
branch: main

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
8 changes: 4 additions & 4 deletions armory-cli_formula_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ class ArmoryCli < Formula

on_macos do
if Hardware::CPU.intel?
url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-darwin-amd64"
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-darwin-amd64"
sha256 "#darwin-amd64-sha"

def install
bin.install "armory-darwin-amd64" => "armory"
end
end
if Hardware::CPU.arm?
url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-darwin-arm64"
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-darwin-arm64"
sha256 "#darwin-arm64-sha"

def install
Expand All @@ -25,15 +25,15 @@ class ArmoryCli < Formula

on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-linux-arm64"
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-linux-arm64"
sha256 "#linux-arm64-sha"

def install
bin.install "armory-linux-arm64" => "armory"
end
end
if Hardware::CPU.intel?
url "https://github.com/armory-io/armory-cli/releases/download/v#VERSION/armory-linux-amd64"
url "https://armory-cli-releases.s3.amazonaws.com/cli/v#VERSION/armory-linux-amd64"
sha256 "#linux-amd64-sha"

def install
Expand Down

0 comments on commit fcb6af1

Please sign in to comment.