mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 12:11:58 +00:00
dist: dont mkdir in container
This commit is contained in:
@@ -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.
|
# Delete the old dir
|
||||||
#if [ -z "$NOTAG" ]; then
|
echo "==> Removing old directory..."
|
||||||
# echo "==> Tagging..."
|
rm -rf build/pkg
|
||||||
# git commit --allow-empty -a -m "Release v$VERSION"
|
mkdir -p build/pkg
|
||||||
# git tag -a -m "Version $VERSION" "v${VERSION}" master
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# 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/
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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 --recursive ${DIST_DIR} s3://tendermint/binaries/tendermint/v${VERSION} --acl public-read
|
||||||
aws s3 cp ${DIST_DIR}/tendermint_${VERSION}_SHA256SUMS s3://tendermint/0.9.0 --acl public-read
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user