Files
mongo/bazel/remote_execution_container/docker_push.sh
Zack Winter 0611cf6b7d SERVER-87337 Switch Bazel RE Containers to use timestamp in tag name
GitOrigin-RevId: 781f8777fdf055136b5f0f9ec7180a297e9d718b
2024-03-01 20:37:03 +00:00

22 lines
470 B
Bash
Executable File

#!/bin/bash
# Push the base images used by bazel remote execution hosts.
timestamp=$(date +%s)
for dir in */; do
cd "$dir" || continue
echo "Building Docker image in $dir..."
# Run docker buildx commands
docker buildx create --use default
docker buildx build --push \
--platform linux/arm64/v8,linux/amd64 \
--tag quay.io/mongodb/bazel-remote-execution:${dir%?}-${timestamp} .
echo "Build completed in $dir"
cd ..
done