1
0
This repository has been archived on 2023-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
beginning-go/vendor/github.com/clockworksoul/smudge/build.sh

20 lines
440 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -eux
GO_VERSION=1.7
# Builds the binary in a go container, and drops the Linux-compatible binary in $PWD/bin
docker run --rm \
-v "$PWD":/go/src/github.com/clockworksoul/smudge \
-v "$PWD/tmp":/go/bin \
-w /go/bin \
-e "CGO_ENABLED=0" \
-e "GOOS=linux" \
golang:${GO_VERSION} \
go build -a -installsuffix cgo -v github.com/clockworksoul/smudge/smudge
docker build -t clockworksoul/smudge:latest .
sudo rm -R tmp