Skip to content

alpha-with-regx-tags

Latest
Compare
Choose a tag to compare
@jinal--shah jinal--shah released this 03 Sep 15:39
b5c696b

Built from regx-tags-reconcile branch (SHA 0161bc6)

# must use at least golang 1.11+ to build for MacOS Monterey or newer
docker run -it --name build_static_fetch --rm \
    -e FETCH_VERSION=v0.2.0 \
    -e GIT_URL=https://github.com/opsgang/fetch \
    -v /tmp/g3-bin:/usr/local/bin \
    -v $PWD:/go/src/github.com/opsgang/fetch \
    -w /go/src/github.com/opsgang/fetch \
        golang:1.12-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
wget "https://github.com/Masterminds/glide/releases/download/v0.13.3/glide-v0.13.3-linux-amd64.zip"
unzip glide-v0.13.3-linux-amd64.zip
mv linux-amd64/glide /usr/local/bin/glide
rm -rf linux_amd64 glide-v0.13.3-linux-amd64.zip
glide install
. build.sh && setup_fetch

build_linux && mv /usr/local/go/bin/ghfetch /usr/local/bin/g3-linux
build_macos && mv /usr/local/go/bin/ghfetch /usr/local/bin/g3-darwin

# binaries under $GOBIN in container or in /tmp/g3-bin on container-host