Skip to content

Commit

Permalink
Redefine missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Nov 19, 2022
1 parent ed61253 commit 2144a54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ _login_to_aws_ecr() {
}

_create_aws_ecr_repos() {
if _is_aws_ecr_public; then
local ecr_public_suffix=-public
fi
_aws ecr${ecr_public_suffix} create-repository --repository-name "$INPUT_IMAGE_NAME" 2>&1 | grep -v RepositoryAlreadyExistsException
_aws ecr${ecr_public_suffix} create-repository --repository-name "$(_get_stages_image_name)" 2>&1 | grep -v RepositoryAlreadyExistsException
return 0
Expand Down

0 comments on commit 2144a54

Please sign in to comment.