mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-30 16:12:39 -06:00
go/utils/publishrelease: Run the builds in a docker container to a get managed toolchain.
This commit is contained in:
1
go/.gitignore
vendored
Normal file
1
go/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
out
|
||||
@@ -6,6 +6,11 @@ set -o pipefail
|
||||
script_dir=$(dirname "$0")
|
||||
cd $script_dir/../..
|
||||
|
||||
docker run --rm -v `pwd`:/src golang:1.14.2-buster /bin/bash -c '
|
||||
set -e
|
||||
set -o pipefail
|
||||
apt-get update && apt-get install -y zip
|
||||
cd /src
|
||||
BINS="dolt git-dolt git-dolt-smudge"
|
||||
OSES="windows linux darwin"
|
||||
ARCHS="386 amd64"
|
||||
@@ -34,8 +39,9 @@ done
|
||||
render_install_sh() {
|
||||
local parsed=(`grep "Version = " ./cmd/dolt/dolt.go`)
|
||||
local DOLT_VERSION=`eval echo ${parsed[2]}`
|
||||
sed 's|__DOLT_VERSION__|'"$DOLT_VERSION"'|' utils/publishrelease/install.sh
|
||||
sed '\''s|__DOLT_VERSION__|'\''"$DOLT_VERSION"'\''|'\'' utils/publishrelease/install.sh
|
||||
}
|
||||
|
||||
render_install_sh > out/install.sh
|
||||
chmod 755 out/install.sh
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user