Skip to content

Commit dc3f374

Browse files
authored
Merge pull request #441 from alemagna-aws/patch-1
Update codebuild_build.sh to use local image name override
2 parents 5922879 + 5946a6c commit dc3f374

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

local_builds/codebuild_build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,12 @@ else
182182
docker_command+=" -e \"INITIATOR=$USER\""
183183
fi
184184

185-
docker_command+=" amazon/aws-codebuild-local:latest"
185+
if [ -n $local_agent_image ]
186+
then
187+
docker_command+=" $local_agent_image"
188+
else
189+
docker_command+=" amazon/aws-codebuild-local:latest"
190+
fi
186191

187192
# Note we do not expose the AWS_SECRET_ACCESS_KEY or the AWS_SESSION_TOKEN
188193
exposed_command=$docker_command

0 commit comments

Comments
 (0)