From 012665cd8d2445dea170b7a55c438b5ab748520d Mon Sep 17 00:00:00 2001 From: Oleg Tsybizov Date: Thu, 29 Jan 2026 14:55:20 -0600 Subject: [PATCH] fix: create ECR repos before pushing images --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c51146f..3398e40a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -229,6 +229,16 @@ jobs: with: mask-password: 'true' + - name: Ensure ECR repositories exist + run: | + # Create repositories if they don't exist + aws ecr describe-repositories --repository-names $ADMIN_REPOSITORY --region $AWS_REGION || \ + aws ecr create-repository --repository-name $ADMIN_REPOSITORY --region $AWS_REGION --image-scanning-configuration scanOnPush=true --image-tag-mutability MUTABLE + aws ecr describe-repositories --repository-names $HANDLER_REPOSITORY --region $AWS_REGION || \ + aws ecr create-repository --repository-name $HANDLER_REPOSITORY --region $AWS_REGION --image-scanning-configuration scanOnPush=true --image-tag-mutability MUTABLE + aws ecr describe-repositories --repository-names $POLLER_REPOSITORY --region $AWS_REGION || \ + aws ecr create-repository --repository-name $POLLER_REPOSITORY --region $AWS_REGION --image-scanning-configuration scanOnPush=true --image-tag-mutability MUTABLE + - name: Build and push Admin Docker image run: | docker build -f docker/admin/Dockerfile -t $REGISTRY/$ADMIN_REPOSITORY:$ADMIN_IMAGE_TAG .