mirror of https://github.com/portainer/portainer
refactor(build-system): update build_in_container.sh (#2230)
wrapped `$(pwd)/api:/src` in `"` quotes to prevent word splitting on the `-tv` optionpull/2247/head
parent
84fc3119a0
commit
e17c873e73
|
@ -4,7 +4,7 @@ binary="portainer-$1-$2"
|
|||
|
||||
mkdir -p dist
|
||||
|
||||
docker run --rm -tv $(pwd)/api:/src -e BUILD_GOOS="$1" -e BUILD_GOARCH="$2" portainer/golang-builder:cross-platform /src/cmd/portainer
|
||||
docker run --rm -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…
Reference in New Issue