Skip to content

Commit

Permalink
See if git in end-to-end
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Sep 4, 2023
1 parent 0784b61 commit e9e42db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions build-system/scripts/remote_run_script
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
set -eu

IP=$1
CONTENT_HASH=$2
FULL_PATH=$3
shift 3
FULL_PATH=$2
shift 2

SSH_CONFIG_PATH=${SSH_CONFIG_PATH:-$BUILD_SYSTEM_PATH/remote/ssh_config}
DIR_NAME=$(dirname $FULL_PATH)
Expand All @@ -15,4 +14,4 @@ scp -F $SSH_CONFIG_PATH $DIR_NAME/* $IP:.
scp -rF $SSH_CONFIG_PATH $BUILD_SYSTEM_PATH $BUILD_SYSTEM_PATH/../.git $IP:.

# Run script on remote instance, passing environment variables.
ssh -A -F $SSH_CONFIG_PATH $IP "CONTENT_HASH=$CONTENT_HASH COMMIT_HASH=$COMMIT_HASH COMMIT_TAG=$COMMIT_TAG JOB_NAME=$JOB_NAME GIT_REPOSITORY_URL=$GIT_REPOSITORY_URL DOCKERHUB_PASSWORD=$DOCKERHUB_PASSWORD ECR_DEPLOY_URL=$ECR_DEPLOY_URL ECR_URL=$ECR_URL ./$SCRIPT_NAME $@"
ssh -A -F $SSH_CONFIG_PATH $IP "COMMIT_HASH=$COMMIT_HASH COMMIT_TAG=$COMMIT_TAG JOB_NAME=$JOB_NAME GIT_REPOSITORY_URL=$GIT_REPOSITORY_URL DOCKERHUB_PASSWORD=$DOCKERHUB_PASSWORD ECR_DEPLOY_URL=$ECR_DEPLOY_URL ECR_URL=$ECR_URL ./$SCRIPT_NAME $@"
2 changes: 1 addition & 1 deletion yarn-project/end-to-end/scripts/cond_run_script
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ echo "Content hash tag: cache-$CONTENT_HASH-$SUCCESS_TAG"
echo "Script to run is $SCRIPT_TO_RUN $@"

if ! check_rebuild cache-$CONTENT_HASH-$SUCCESS_TAG $REPOSITORY; then
CONTENT_HASH="$CONTENT_HASH" "$SCRIPT_TO_RUN" "$@"
"$SCRIPT_TO_RUN" "$@"
tag_remote_image $REPOSITORY cache-$CONTENT_HASH cache-$CONTENT_HASH-$SUCCESS_TAG
fi
1 change: 0 additions & 1 deletion yarn-project/end-to-end/scripts/run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export COMPOSE_FILE=${2:-docker-compose.yml}

$(aws ecr get-login --region us-east-2 --no-include-email) 2> /dev/null

git show
for REPO in aztec.js end-to-end aztec-sandbox; do
docker pull 278380418400.dkr.ecr.us-east-2.amazonaws.com/$REPO:cache-$CONTENT_HASH
docker tag 278380418400.dkr.ecr.us-east-2.amazonaws.com/$REPO:cache-$CONTENT_HASH aztecprotocol/$REPO:latest
Expand Down

0 comments on commit e9e42db

Please sign in to comment.