1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

refactor(build-system): reduce gruntfile verbosity, drop grunt-if, allow custom build (#939)

This commit is contained in:
1138-4EB 2017-07-11 09:30:25 +02:00 committed by Anthony Lapenna
parent 25ed6a71fb
commit b23943e30b
4 changed files with 115 additions and 386 deletions

10
build/build_in_container.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
binary="portainer-$1-$2"
mkdir -p dist
docker run -tv $(pwd)/api:/src -e BUILD_GOOS="$1" -e BUILD_GOARCH="$2" portainer/golang-builder:cross-platform /src/cmd/portainer
mv "api/cmd/portainer/$binary" dist/
#sha256sum "dist/$binary" > portainer-checksum.txt