Skip to content

Releases: opsgang/fetch

alpha-with-regx-tags

03 Sep 15:39
b5c696b
Compare
Choose a tag to compare

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

10 Nov 17:40
Compare
Choose a tag to compare

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