Skip to content

Commit

Permalink
Add ecr support for codebuild (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger authored May 16, 2024
1 parent ab716be commit e302a13
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ runs:
run: |
pip install pyopenssl -U
LS_IMAGE_STUB="localstack/localstack"
if [ "x${CODEBUILD_BUILD_ID}" != "x" ]; then
LS_IMAGE_STUB="public.ecr.aws/${LS_IMAGE_STUB}"
fi
if [ "$USE_PRO" = true ]; then
docker pull localstack/localstack-pro:"$IMAGE_TAG" &
docker pull ${LS_IMAGE_STUB}-pro:"$IMAGE_TAG" &
CONFIGURATION="$CONFIGURATION DNS_ADDRESS=127.0.0.1"
else
docker pull localstack/localstack:"$IMAGE_TAG" &
docker pull ${LS_IMAGE_STUB}:"$IMAGE_TAG" &
fi
pip install localstack
Expand Down

0 comments on commit e302a13

Please sign in to comment.