Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: add release buildspec #30

Merged
merged 2 commits into from
Jun 27, 2019
Merged

Conversation

laurenyu
Copy link
Contributor

Description of changes:
Following in the footsteps of the other packages: this PR adds a buildspec for CodeBuild to use to release images.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

"dest": ["'$FRAMEWORK_FULL_VERSION'-gpu-py3", "'$FRAMEWORK_SHORT_VERSION'-gpu-py3", "'$FRAMEWORK_FULL_VERSION'-gpu-py3-'${CODEBUILD_BUILD_ID#*:}'"]
}],
"test": [
"IGNORE_COVERAGE=- tox -e py36 -- test/integration/sagemaker/test_hosting.py --py-version 3 --processor cpu --region {region} --docker-base-name '$ECR_REPO' --aws-id 520713654638 --framework-version '$FRAMEWORK_FULL_VERSION'",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the current account id since not all the prod images are in 520713654638 anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point


# Run docker-login so we can pull the cached image
login_cmd = subprocess.check_output(
'aws ecr get-login --no-include-email --registry-id {}'.format(args.account).split())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need the --region here for the special regions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will only be run in the region where it's being built, which in our case is us-west-2, but I guess it doesn't hurt to add it

Copy link

@icywang86rui icywang86rui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go!

@laurenyu laurenyu merged commit a25f7b0 into aws:master Jun 27, 2019
@laurenyu laurenyu deleted the release-build branch June 27, 2019 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants