Homebrew Formula for a Go app
These are quick notes from making my own Formula and Tap.
Add go build script to your Git repo
gobuild.sh
#!/bin/bash
# BASIC COMMAND | |
$ wget -q https://registry.hub.docker.com/v1/repositories/<USER>/<IMAGE>/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}' | |
# EXAMPLE: LISTING ALL JBOSS IMAGES | |
$ wget -q https://registry.hub.docker.com/v1/repositories/jboss/wildfly/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}' | |
# OUTPUTS : | |
latest | |
10.0.0.Final | |
10.1.0.Final |
These are quick notes from making my own Formula and Tap.
gobuild.sh
#!/bin/bash