Fix script to publish builder images
#
# Publish all the project builder docker images to docker hub
#
+# TODO integrate logic here with project Makefile
+#
# Usage: ./publish_images.sh
+
# exit the script when a command fails
set -o errexit
+
# catch exit status for piped commands
set -o pipefail
-RUST_TOOLCHAIN_FILE="./rust-toolchain"
+
+RUST_TOOLCHAIN_FILE="../../rust-toolchain"
RUST_VERSION=$(<"$RUST_TOOLCHAIN_FILE")
+
IMAGES=(
"tremor-builder:x86_64-unknown-linux-gnu"
"tremor-builder:x86_64-unknown-linux-gnu-${RUST_VERSION}"
@@ -20,5 +26,5 @@ IMAGES=(
#"tremor-builder:x86_64-unknown-linux-musl-${RUST_VERSION}"
)
for image in "${IMAGES[@]}"; do
- docker push tremorproject/"$image"
+ docker push "tremorproject/${image}"
done
