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:
parent
25ed6a71fb
commit
b23943e30b
4 changed files with 115 additions and 386 deletions
10
build/build_in_container.sh
Executable file
10
build/build_in_container.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue