Releases: opsgang/fetch
Releases · opsgang/fetch
alpha-with-regx-tags
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
static binary for amd64 linux
v0.1.1 static binary works on amd64 linux (including alpine)
Download it:
curl \
-L -H 'Accept: application/octet-stream' \
https://github.com/opsgang/fetch/releases/download/v0.1.1/fetch.tgz \
| tar -xzv -C /usr/local/bin # change /usr/local/bin to desired location for binary