Skip to content

Commit 31c96df

Browse files
author
Brent Millare
committed
Update cicd
- PR merges build test image to not ever race condition conflict with PUSH image
1 parent bb35de8 commit 31c96df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/buildspec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ phases:
2929
- echo Pushing the Docker image...
3030
- |
3131
case $CODEBUILD_WEBHOOK_EVENT in
32-
PUSH | PULL_REQUEST_MERGED)
32+
PUSH)
3333
docker push 515193369038.dkr.ecr.us-west-2.amazonaws.com/sagemaker-scikit-learn:$FRAMEWORK_VERSION-cpu-py3 | grep -v -E "[0-9]{12}.dkr.ecr.\S+.amazonaws.com"
3434
;;
35-
PULL_REQUEST_CREATED | PULL_REQUEST_UPDATED | PULL_REQUEST_REOPENED)
35+
PULL_REQUEST_MERGED | PULL_REQUEST_CREATED | PULL_REQUEST_UPDATED | PULL_REQUEST_REOPENED)
3636
# pushes test tag for manual verification, requires cleanup in ECR every once in a while though
3737
TEST_TAG=515193369038.dkr.ecr.us-west-2.amazonaws.com/sagemaker-scikit-learn:$FRAMEWORK_VERSION-cpu-py3-test
3838
docker tag preprod-sklearn:$FRAMEWORK_VERSION-cpu-py3 ${TEST_TAG}

0 commit comments

Comments
 (0)