Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions barretenberg/crs/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source_bootstrap
set -euo pipefail

cmd=${1:-}
shift || true

# To run bb we need a crs.
# Download ignition up front to ensure no race conditions at runtime.
Expand Down Expand Up @@ -40,6 +43,6 @@ case "$cmd" in
build
;;
*)
default_cmd_handler "$@"
exit 1
;;
esac
9 changes: 6 additions & 3 deletions build-images/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ function build_all {
parallel --tag --line-buffer ./bootstrap.sh {} ::: ec2-amd64 ec2-arm64
}

function update_amis {
parallel --tag --line-buffer ARCH={} $ci3/aws/ami_update.sh ::: amd64 arm64
}

case "$cmd" in
"")
build_images
Expand All @@ -108,10 +112,9 @@ case "$cmd" in
docker_login
build_all
update_manifests
parallel --tag --line-buffer ARCH={} $ci3/aws/ami_update.sh ::: amd64 arm64
update_amis
;;
*)
echo "Unknown command: $cmd"
exit 1
default_cmd_handler "$@"
;;
esac
2 changes: 1 addition & 1 deletion ci3/aws/ami_id_amd64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ami-09d27244b23be8891
ami-067627aa971a1dcbb
2 changes: 1 addition & 1 deletion ci3/aws/ami_id_arm64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ami-0e5e48268513912d0
ami-099a6d94f71a679d0
2 changes: 2 additions & 0 deletions ci3/aws/ami_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ ssh $ssh_args -F build_instance_ssh_config ubuntu@$ip '
mkdir .aws
'

ssh -F build_instance_ssh_config -O exit ubuntu@$ip 2>/dev/null || true

# Download crs onto machine.
ssh $ssh_args -F build_instance_ssh_config ubuntu@$ip < ../../barretenberg/crs/bootstrap.sh

Expand Down
Loading