From f40b69ccea56107a4420a9c9293c761dd32f9c4d Mon Sep 17 00:00:00 2001 From: Matthew Fala Date: Tue, 31 Oct 2023 04:23:00 +0000 Subject: [PATCH] publish: add scanner account to sync task script Signed-off-by: Matthew Fala --- scripts/publish.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/publish.sh b/scripts/publish.sh index 1e9f21caa..904e94ed8 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -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") @@ -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 @@ -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 @@ -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} @@ -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