Browse Source

dist: dont mkdir in container

pull/527/head
Ethan Buchman 8 years ago
parent
commit
84fea82043
3 changed files with 7 additions and 15 deletions
  1. +4
    -6
      scripts/dist.sh
  2. +0
    -5
      scripts/dist_build.sh
  3. +3
    -4
      scripts/publish.sh

+ 4
- 6
scripts/dist.sh View File

@ -19,12 +19,10 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that dir because we expect that. # Change into that dir because we expect that.
cd "$DIR" 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. # Do a hermetic build inside a Docker container.
docker build -t tendermint/tendermint-builder scripts/tendermint-builder/ docker build -t tendermint/tendermint-builder scripts/tendermint-builder/


+ 0
- 5
scripts/dist_build.sh View File

@ -18,11 +18,6 @@ GIT_IMPORT="github.com/tendermint/tendermint/version"
XC_ARCH=${XC_ARCH:-"386 amd64 arm"} XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
XC_OS=${XC_OS:-"solaris darwin freebsd linux windows"} 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 sure build tools are available.
make tools make tools


+ 3
- 4
scripts/publish.sh View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu
set -e
VERSION=$1 VERSION=$1
DIST_DIR=$2 # ./build/dist
DIST_DIR=./build/dist
# Get the version from the environment, or try to figure it out. # Get the version from the environment, or try to figure it out.
if [ -z $VERSION ]; then if [ -z $VERSION ]; then
@ -14,7 +14,6 @@ if [ -z "$VERSION" ]; then
fi fi
# copy to s3 # 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 exit 0

Loading…
Cancel
Save