19 lines
562 B
Bash
Executable File
19 lines
562 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check if VERSION environment is set
|
|
if [ -z "$VERSION" ]; then
|
|
echo "ERROR: VERSION environment variable is not set"
|
|
exit 1
|
|
fi
|
|
|
|
# Check if TWINE_PASSWORD is set
|
|
if [ -z "$TWINE_PASSWORD" ]; then
|
|
echo "ERROR: TWINE_PASSWORD environment variable is not set"
|
|
exit 1
|
|
fi
|
|
|
|
set -eo pipefail
|
|
|
|
chmod +x build_helper.sh
|
|
docker build -f build.Dockerfile -t mariadb-binlog-indexer-build-helper .
|
|
docker run --rm -it -v $(pwd):/app -w /app -e VERSION="$VERSION" -e TWINE_PASSWORD="$TWINE_PASSWORD" mariadb-binlog-indexer-build-helper ./build_helper.sh |