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

Automate publishing to ECR #1339

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

torredil
Copy link
Member

Signed-off-by: Eddie Torres torredil@amazon.com

What is this PR about? / Why do we need it?

  • Added workflow to automate publishing container images to staging / public ECR. Workflow is split into two separate jobs to enable a manual approval step / verify the release before pushing to public ECR.
  • create-manifest: all-image-registry allows for parallelization with make -j `nproc` all-push to improve build times.
  • Changes GOPROXY default value to https://proxy.golang.org.

closes #1317
closes #1315

Signed-off-by: Eddie Torres <torredil@amazon.com>
@torredil torredil requested review from rdpsin and gtxu August 12, 2022 13:52
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 12, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: torredil

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 12, 2022
@torredil
Copy link
Member Author

/hold public ECR registry alias needs to be changed before merging.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 12, 2022
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: GitHubCI
aws-region: us-east-1
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it required for the credential's region to match the ECR private repository region?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the region specified here matches the staging registry's region.

@torredil
Copy link
Member Author

Public ECR registry alias has been changed.

@gtxu
Copy link
Contributor

gtxu commented Aug 16, 2022

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2022
@gtxu
Copy link
Contributor

gtxu commented Aug 16, 2022

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 16, 2022
@k8s-ci-robot k8s-ci-robot merged commit 6760e34 into kubernetes-sigs:master Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve EBS CSI driver release process Stop tagging OS/architecture specific images in public ECR
3 participants