dist: dont mkdir in container
This commit is contained in:
parent
d608e2b7ad
commit
84fea82043
|
@ -19,12 +19,10 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
|
|||
# Change into that dir because we expect that.
|
||||
cd "$DIR"
|
||||
|
||||
## Generate the tag.
|
||||
#if [ -z "$NOTAG" ]; then
|
||||
# echo "==> Tagging..."
|
||||
# git commit --allow-empty -a -m "Release v$VERSION"
|
||||
# git tag -a -m "Version $VERSION" "v${VERSION}" master
|
||||
#fi
|
||||
# Delete the old dir
|
||||
echo "==> Removing old directory..."
|
||||
rm -rf build/pkg
|
||||
mkdir -p build/pkg
|
||||
|
||||
# Do a hermetic build inside a Docker container.
|
||||
docker build -t tendermint/tendermint-builder scripts/tendermint-builder/
|
||||
|
|
|
@ -18,11 +18,6 @@ GIT_IMPORT="github.com/tendermint/tendermint/version"
|
|||
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
||||
XC_OS=${XC_OS:-"solaris darwin freebsd linux windows"}
|
||||
|
||||
# Delete the old dir
|
||||
echo "==> Removing old directory..."
|
||||
rm -rf build/pkg
|
||||
mkdir -p build/pkg
|
||||
|
||||
# Make sure build tools are available.
|
||||
make tools
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
set -e
|
||||
|
||||
VERSION=$1
|
||||
DIST_DIR=$2 # ./build/dist
|
||||
DIST_DIR=./build/dist
|
||||
|
||||
# Get the version from the environment, or try to figure it out.
|
||||
if [ -z $VERSION ]; then
|
||||
|
@ -14,7 +14,6 @@ if [ -z "$VERSION" ]; then
|
|||
fi
|
||||
|
||||
# copy to s3
|
||||
aws s3 cp --recursive ${DIST_DIR} s3://tendermint/${VERSION} --acl public-read --exclude "*" --include "*.zip"
|
||||
aws s3 cp ${DIST_DIR}/tendermint_${VERSION}_SHA256SUMS s3://tendermint/0.9.0 --acl public-read
|
||||
aws s3 cp --recursive ${DIST_DIR} s3://tendermint/binaries/tendermint/v${VERSION} --acl public-read
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue