Skip to content

Commit

Permalink
add script that checks out circuits, builds and pushes all at once (#660
Browse files Browse the repository at this point in the history
)

* add script that does all the things

* authenticate right before push

* fix stuff
  • Loading branch information
Sladuca authored Dec 3, 2023
1 parent e44fa51 commit a062dc7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scripts/build_and_push_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
ROOT_DIR="$SCRIPT_DIR/../"
NETWORK_NAME=$1

if [ -z "$NETWORK_NAME" ]
then
echo "no network name given"
exit 1
else
echo "building and pushing all images for network '$NETWORK_NAME'"
fi

yarn checkout-circuit-artifacts:$NETWORK_NAME

yarn build:docker-actors:$NETWORK_NAME &
yarn build:docker-updater:$NETWORK_NAME &
wait

./scripts/authenticate_ecr.sh

yarn push:docker-actors:$NETWORK_NAME &
yarn push:docker-updater:$NETWORK_NAME &
wait

0 comments on commit a062dc7

Please sign in to comment.