File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11# program output from databag-env
22* .env
33
4- # go build output
5- databag-envdump /databag-envdump
6- build12 /build12
7- release12 /release12
8- docker-ssh-exec /docker-ssh-exec
9-
104# goxc build output and local config
115pkg /
126* .goxc.local.json
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # runs goxc in each product directory
3+ set -e
4+
5+ echo " Building static linux binary for docker-ssh-exec..."
6+ mkdir -p pkg
7+ buildcmd=' CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o pkg/docker-ssh-exec'
8+ docker run --rm -it -v " $GOPATH " :/gopath -v " $( pwd) " :/app -e " GOPATH=/gopath" \
9+ -w /app golang:1.5 sh -c " $buildcmd "
10+
11+ echo " Building docker image for docker-ssh-exec..."
12+ docker build --no-cache=true --tag mdsol/docker-ssh-exec .
13+ rm -f pkg/docker-ssh-exec
14+
15+ echo " Done. To make a release, run: goxc"
16+ exit 0
You can’t perform that action at this time.
0 commit comments