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

chore: add push image to aws ecr #155

Merged
merged 5 commits into from
Jul 24, 2024

Conversation

daviderli614
Copy link
Member

@daviderli614 daviderli614 commented Jun 25, 2024

What change

When pulling images in aws eks, dockerhub rate limit, we use aws public container registry image replace dockerhub image.

Using the action push image to private AWS ECR.

@daviderli614 daviderli614 requested a review from zyy17 June 25, 2024 12:38
@daviderli614
Copy link
Member Author

Fixed e2e fail in this PR.

@zyy17
Copy link
Collaborator

zyy17 commented Jul 9, 2024

@daviderli614 Are you still working on that?

Copy link
Contributor

coderabbitai bot commented Jul 21, 2024

Walkthrough

The recent updates to the GitHub Actions workflows enhance Docker image management by integrating AWS services. Key improvements include steps for configuring AWS credentials and authenticating with Amazon ECR, enabling seamless Docker image pushes to the AWS container registry. This integration streamlines deployment processes, allowing for better management and deployment of Docker images.

Changes

Files Change Summary
.github/workflows/dev-build.yaml, .github/workflows/release.yaml Added steps to configure AWS credentials and log into Amazon ECR. Updated image tagging for proper ECR integration.

Poem

In the land of code where rabbits play,
New AWS paths light the way.
With Docker images ready to soar,
To ECR, they’ll hop and explore!
Hooray for changes, swift and bright,
Our builds now dance in the cloud’s warm light! 🐰✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c5c1dad and 13e3fa4.

Files selected for processing (2)
  • .github/workflows/dev-build.yaml (3 hunks)
  • .github/workflows/release.yaml (4 hunks)
Additional comments not posted (8)
.github/workflows/release.yaml (4)

59-61: Verify Amazon ECR login configuration.

The Amazon ECR login configuration looks correct. Ensure that the action version is up-to-date and compatible with your workflow.

Verification successful

Verify Amazon ECR login configuration.

The previous attempt to verify the version of the aws-actions/amazon-ecr-login action failed due to an incorrect command. We will now fetch the latest release version directly from the GitHub repository.


Amazon ECR login configuration is correct.

The Amazon ECR login configuration uses version v2, which includes the latest release v2.0.1. This confirms that the action version is up-to-date and compatible with your workflow.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the version of `aws-actions/amazon-ecr-login` action.

# Test: Check the latest version of the action. Expect: Version `v2` to be the latest.
gh actions list --repo aws-actions/amazon-ecr-login

Length of output: 102


Script:

#!/bin/bash
# Description: Fetch the latest release version of `aws-actions/amazon-ecr-login` action.

# Test: Check the latest release version. Expect: Version `v2` to be the latest.
gh release list --repo aws-actions/amazon-ecr-login --limit 1

Length of output: 105


79-80: Verify ECR image tags for greptimedb-operator.

The ECR image tags for greptimedb-operator look correct. Ensure that the ECR_REGISTRY variable is correctly set in the workflow.


93-94: Verify ECR image tags for greptimedb-initializer.

The ECR image tags for greptimedb-initializer look correct. Ensure that the ECR_REGISTRY variable is correctly set in the workflow.


39-44: Ensure secure handling of AWS credentials.

The AWS credentials configuration looks correct. Ensure that the secrets are securely stored and managed in GitHub Secrets.

.github/workflows/dev-build.yaml (4)

57-62: Ensure secure handling of AWS credentials.

The AWS credentials configuration looks correct. Ensure that the secrets are securely stored and managed in GitHub Secrets.


70-72: Verify Amazon ECR login configuration.

The Amazon ECR login configuration looks correct. Ensure that the action version is up-to-date and compatible with your workflow.

Verification successful

Amazon ECR login configuration is correct and up-to-date.

The action version v2 used in the workflow is compatible with the latest release v2.0.1 of the aws-actions/amazon-ecr-login action.

  • The latest release tag is v2.0.1.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the version of `aws-actions/amazon-ecr-login` action.

# Test: Check the latest version of the action. Expect: Version `v2` to be the latest.
gh actions list --repo aws-actions/amazon-ecr-login

Length of output: 102


Script:

#!/bin/bash
# Description: Verify the latest version of `aws-actions/amazon-ecr-login` action.

# Fetch the latest release tag from the GitHub repository
curl -s https://api.github.com/repos/aws-actions/amazon-ecr-login/releases/latest | jq -r .tag_name

Length of output: 108


98-99: Verify ECR image tags for greptimedb-operator-dev.

The ECR image tags for greptimedb-operator-dev look correct. Ensure that the ECR_REGISTRY variable is correctly set in the workflow.


113-114: Verify ECR image tags for greptimedb-initializer-dev.

The ECR image tags for greptimedb-initializer-dev look correct. Ensure that the ECR_REGISTRY variable is correctly set in the workflow.

@daviderli614
Copy link
Member Author

@daviderli614 Are you still working on that?

I changed code and push to private ECR. @zyy17

@zyy17 zyy17 merged commit 87811df into GreptimeTeam:develop Jul 24, 2024
3 checks passed
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