47015433cc
- binary (simple traefik build) - crossbinary, cross build using gox Signed-off-by: Vincent Demeester <vincent@sbr.pm>
14 lines
249 B
Bash
Executable file
14 lines
249 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
if ! test -e gen.go; then
|
|
echo >&2 'error: generate must be run before binary'
|
|
false
|
|
fi
|
|
|
|
rm -f dist/traefik
|
|
rm -rf Godeps/_workspace/pkg
|
|
|
|
# Build binaries
|
|
CGO_ENABLED=0 godep go build -a -installsuffix nocgo -o dist/traefik .
|
|
|