$ brew tap mulesoft-labs/tap
$ brew install aws-keycloak
- Create a Release (or Tag) for your source repo. Make sure it builds!
- In the formula here, update the
url
andsha256
with:curl -L $url | shasum -a256
- Delete or comment our the
bottle do
block. - Make sure you don't have the formula installed already (eg.
brew remove aws-keycloak
) - Test with
brew install --verbose --debug HomebrewFormula/aws-keycloak.rb
, see that it builds as expected. (I had to try this half a dozen times before the build was clean, not sure why) git commit
,git push
(merge to master),brew update
- Make sure it is not installed again (eg.
brew remove aws-keycloak
) - Install it from your tap and build the bottle:
brew install --build-bottle aws-keycloak
(may need to run multiple times again). brew bottle aws-keycloak
. Copy the output into your formula, but change theroot_url
to some place you can actually host the file, like a github release, eg.https://github.com/mulesoft-labs/aws-keycloak/releases/download/v1.3.6/
- Upload the generated tar.gz file to that location, like by attaching it to the gh release. Make sure to change the filename to get rid of the
--
! It should be$bin-$version.$os.bottle.tar.gz
. - Make sure it is not installed again.
- Test the bottle with
brew install --force-bottle HomebrewFormula/aws-keycloak.rb
. - If it works, commit and push!
- Test by
brew remove
ing it again,brew update
, andbrew install aws-keycloak
. See that it uses the bottle rather than building.