Yihau Chen 8363ebfd64
ci: merge docker images (#35078)
* ci: add new ci docker image

* ci: use the new docker image

* fix shellcheck

* add readme for the new docker image

* remove old docker images

* remove unused check in docs/build.sh

* use the new image in net.sh
2024-02-07 15:17:33 +08:00

50 lines
886 B
Bash
Executable File

#!/usr/bin/env bash
set -e
here=$(dirname "$0")
# shellcheck source=.buildkite/scripts/common.sh
source "$here"/common.sh
agent="${1-solana}"
partitions=$(
cat <<EOF
{
"name": "partitions",
"command": "ci/docker-run-default-image.sh ci/stable/run-partition.sh",
"timeout_in_minutes": 30,
"agent": "$agent",
"parallelism": 2,
"retry": 3
}
EOF
)
local_cluster_partitions=$(
cat <<EOF
{
"name": "local-cluster",
"command": "ci/docker-run-default-image.sh ci/stable/run-local-cluster-partially.sh",
"timeout_in_minutes": 30,
"agent": "$agent",
"parallelism": 5,
"retry": 3
}
EOF
)
localnet=$(
cat <<EOF
{
"name": "localnet",
"command": "ci/docker-run-default-image.sh ci/stable/run-localnet.sh",
"timeout_in_minutes": 30,
"agent": "$agent"
}
EOF
)
# shellcheck disable=SC2016
group "stable" "$partitions" "$local_cluster_partitions" "$localnet"