Skip to content

Commit

Permalink
More GitHub Packages improvements
Browse files Browse the repository at this point in the history
- Add the `root_url` as it's needed for now to be able to download this
  (until we don't assume taps are using Bintray).
- Indent `yosemite` hash correctly.
- Add documentation for how to upload bottles.
  • Loading branch information
MikeMcQuaid committed Apr 8, 2021
1 parent 5f99362 commit b4ba3ec
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/portable-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class PortableRuby < PortableFormula
revision 2

bottle do
sha256 cellar: :any_skip_relocation, yosemite: "b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86"
root_url "https://ghcr.io/v2/homebrew/portable-ruby"
sha256 cellar: :any_skip_relocation, yosemite: "b065e5e3783954f3e65d8d3a6377ca51649bfcfa21b356b0dd70490f74c6bd86"
sha256 cellar: :any_skip_relocation, x86_64_linux: "97e639a64dcec285392b53ad804b5334c324f1d2a8bdc2b5087b8bf8051e332f"
end

Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ docker run --name=homebrew-portable-ruby -w /bottle homebrew-portable brew porta
docker cp homebrew-portable-ruby:/bottle .
```

### Upload

Copy the bottle `bottle*.tar.gz` files into a directory on your local machine.

If you have the `bottle*.json` files: copy them too. If not, generate them with:

```sh
brew bottle *.tar.gz --json --root-url=https://ghcr.io/v2/homebrew/portable-ruby
```

Upload these files to GitHub Packages with:

```sh
brew pr-upload --root-url=https://ghcr.io/v2/homebrew/portable-ruby
```

## Current Status

Used in production for Homebrew/brew.
Expand Down

0 comments on commit b4ba3ec

Please sign in to comment.