-
Notifications
You must be signed in to change notification settings - Fork 906
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
Update CircleCI config to use public docker images #1171
Conversation
environment: | ||
ECR_IMAGE_URL: 350138855857.dkr.ecr.eu-west-2.amazonaws.com/kedro-builder | ||
AWS_REGION: eu-west-2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only need these once now so I've removed them from environment variables and just put them directly into the relevant commands below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docker_build "$pip_reqs" 3.8 | ||
docker_push 3.8 | ||
|
||
docker_build "$pip_reqs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've altered this script so it runs for just one Python version at a time. This matches how the rest of the CircleCI config works and means we can have exactly the same script on main and develop.
- build_kedro: | ||
matrix: | ||
parameters: | ||
python_version: ["3.6", "3.7", "3.8"] | ||
requires: | ||
- build_docker_image | ||
- build_docker_image-<<matrix.python_version>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means that build_kedro-3.6
only depends on build_docker_image-3.6
, etc.
- build_docker_image-<<matrix.python_version>> | ||
|
||
# Python version that are *only* supported on `develop`. | ||
nightly_build_develop: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be done as a separate workflow since it needs to use the requirements on develop
branch. Just using the ones from main
doesn't pass the build_kedro-3.9
job.
Signed-off-by: Laurens Vijnck <laurens_vijnck@mckinsey.com>
Description
We've moved the docker images used for CircleCI to public on AWS ECR. This means that forked PRs will no longer need access to environment variables for credentials to pull the images. Credentials are still needed to push a new image (done nightly in the
build_docker_image
job).If all works ok then this will unblock merging the forked PRs that are currently failing.
Checklist
RELEASE.md
file