Skip to content

Commit e302a13

Browse files
authored
Add ecr support for codebuild (#15)
1 parent ab716be commit e302a13

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ runs:
5151
run: |
5252
pip install pyopenssl -U
5353
54+
LS_IMAGE_STUB="localstack/localstack"
55+
if [ "x${CODEBUILD_BUILD_ID}" != "x" ]; then
56+
LS_IMAGE_STUB="public.ecr.aws/${LS_IMAGE_STUB}"
57+
fi
58+
5459
if [ "$USE_PRO" = true ]; then
55-
docker pull localstack/localstack-pro:"$IMAGE_TAG" &
60+
docker pull ${LS_IMAGE_STUB}-pro:"$IMAGE_TAG" &
5661
CONFIGURATION="$CONFIGURATION DNS_ADDRESS=127.0.0.1"
5762
else
58-
docker pull localstack/localstack:"$IMAGE_TAG" &
63+
docker pull ${LS_IMAGE_STUB}:"$IMAGE_TAG" &
5964
fi
6065
6166
pip install localstack

0 commit comments

Comments
 (0)