mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Since c597d591b56a2a9ed355c57a717d1b2ed4c31aa9 the release script uses acbuild instead of actool, so purge all the references and have the release script check for acbuild's presence instead.
34 lines
798 B
Bash
Executable File
34 lines
798 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Build all release binaries and images to directory ./release.
|
|
# Run from repository root.
|
|
#
|
|
set -e
|
|
|
|
VERSION=$1
|
|
if [ -z "${VERSION}" ]; then
|
|
echo "Usage: ${0} VERSION" >> /dev/stderr
|
|
exit 255
|
|
fi
|
|
|
|
if ! command -v acbuild >/dev/null; then
|
|
echo "cannot find acbuild"
|
|
exit 1
|
|
fi
|
|
|
|
if ! command -v docker >/dev/null; then
|
|
echo "cannot find docker"
|
|
exit 1
|
|
fi
|
|
|
|
ETCD_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|
|
|
pushd ${ETCD_ROOT} >/dev/null
|
|
echo Building etcd binary...
|
|
./scripts/build-binary ${VERSION}
|
|
echo Building aci image...
|
|
BINARYDIR=release/etcd-${VERSION}-linux-amd64 BUILDDIR=release ./scripts/build-aci ${VERSION}
|
|
echo Building docker image...
|
|
BINARYDIR=release/etcd-${VERSION}-linux-amd64 BUILDDIR=release ./scripts/build-docker ${VERSION}
|
|
popd >/dev/null
|