Skip to content

Commit

Permalink
publish: add scanner account to sync task script
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Fala <falamatt@amazon.com>
  • Loading branch information
matthewfala committed Oct 31, 2023
1 parent 00496b6 commit f40b69c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ gamma_region="us-west-2"

gamma_account_id="626332813196"

scanner_region="us-west-2"

scanner_account_id="210752607241"

DOCKER_HUB_SECRET="com.amazonaws.dockerhub.aws-for-fluent-bit.credentials"

ARCHITECTURES=("amd64" "arm64")
Expand Down Expand Up @@ -791,6 +795,10 @@ if [ "${1}" = "publish" ]; then
publish_ecr ${melbourne_region} ${melbourne_account_id}
fi

if [ "${2}" = "${scanner_region}" ]; then
publish_ecr ${scanner_region} ${scanner_account_id}
fi

if [ "${2}" = "gamma" ]; then
publish_ecr ${gamma_region} ${gamma_account_id}
fi
Expand Down Expand Up @@ -863,6 +871,10 @@ if [ "${1}" = "verify" ]; then
verify_ecr ${melbourne_region} ${melbourne_account_id}
fi

if [ "${2}" = "${scanner_region}" ]; then
verify_ecr ${scanner_region} ${scanner_account_id}
fi

if [ "${2}" = "gamma" ]; then
verify_ecr ${gamma_region} ${gamma_account_id}
fi
Expand Down Expand Up @@ -1097,6 +1109,8 @@ if [ "${1}" = "cicd-publish" ]; then
sync_image_version ${tel_aviv_region} ${tel_aviv_account_id}
elif [ "${2}" = "${melbourne_region}" ]; then
sync_image_version ${melbourne_region} ${melbourne_account_id}
elif [ "${2}" = "${scanner_region}" ]; then
sync_image_version ${scanner_region} ${scanner_account_id}
elif [ $# -eq 3 ] && [ "${3}" = "stable" ]; then
for region in ${classic_regions}; do
sync_image_version ${region} ${classic_regions_account_id}
Expand Down Expand Up @@ -1150,6 +1164,8 @@ if [ "${1}" = "cicd-verify" ]; then
verify_ecr ${tel_aviv_region} ${tel_aviv_account_id} true
elif [ "${2}" = "${melbourne_region}" ]; then
verify_ecr ${melbourne_region} ${melbourne_account_id} true
elif [ "${2}" = "${scanner_region}" ]; then
verify_ecr ${scanner_region} ${scanner_account_id} true
elif [ $# -eq 3 ] && [ "${3}" = "stable" ]; then
for region in ${classic_regions}; do
verify_ecr ${region} ${classic_regions_account_id} true
Expand Down

0 comments on commit f40b69c

Please sign in to comment.