Built from regx-tags-reconcile branch (SHA 0161bc6)
docker run -it --name build_static_fetch --rm \
-e FETCH_VERSION=v0.2.0 \
-e GIT_URL=https://github.com/opsgang/fetch \
-v $PWD:/go/src/github.com/opsgang/fetch \
-v /tmp/go-bin:/usr/local/go/bin \
-w /go/src/github.com/opsgang/fetch \
golang:1.9-alpine /bin/sh
# inside container
apk --no-cache --update add ca-certificates bash gcc musl-dev openssl git curl su-exec
bash
export GOPATH=/go GOBIN=/usr/local/go/bin
export LGOBIN=$GOBIN PATH=$PATH:$GOBIN
. build.sh && setup_fetch
build_linux && mv /usr/local/bin/ghfetch /usr/local/bin/g3-linux
build_macos && mv /usr/local/bin/ghfetch /usr/local/bin/g3-darwin
# binaries under $GOBIN or under /tmp/go-bin on container-host