-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add CI/CD workflow for AWS S3 deployment #3788
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
base: master
Are you sure you want to change the base?
Conversation
|
@thaobk54 is attempting to deploy a commit to the umami-software Team on Vercel. A member of the Team first needs to authorize it. |
Greptile OverviewGreptile SummaryThis PR adds a new GitHub Actions workflow ( Important Files Changed
Confidence score: 1/5
Sequence DiagramsequenceDiagram
participant User
participant GitHub
participant "GitHub Actions"
participant Python/pip
participant "AWS CLI"
participant "Node.js"
participant "AWS STS"
participant "Amazon ECR"
participant Docker
participant "Amazon EKS"
participant kubectl
participant "AWS SSM"
User->>GitHub: "Push to master branch"
GitHub->>+"GitHub Actions": "Trigger workflow"
"GitHub Actions"->>+"GitHub Actions": "Checkout code"
"GitHub Actions"->>+Python/pip: "Setup Python 3.8"
Python/pip-->>-"GitHub Actions": "Python environment ready"
"GitHub Actions"->>+"AWS CLI": "Install AWS CLI via pip"
"AWS CLI"-->>-"GitHub Actions": "AWS CLI installed"
"GitHub Actions"->>+"Node.js": "Setup Node.js 18.18.1"
"Node.js"-->>-"GitHub Actions": "Node.js environment ready"
"GitHub Actions"->>+"AWS STS": "Configure AWS credentials"
"AWS STS"-->>-"GitHub Actions": "AWS credentials configured"
"GitHub Actions"->>+"AWS STS": "Get caller identity and account ID"
"AWS STS"-->>-"GitHub Actions": "Account ID retrieved"
"GitHub Actions"->>+Amazon ECR: "Login to ECR"
Amazon ECR-->>-"GitHub Actions": "ECR login successful"
"GitHub Actions"->>+Docker: "Build Docker image with tag"
Docker-->>-"GitHub Actions": "Docker image built"
"GitHub Actions"->>+Amazon ECR: "Push Docker image to ECR"
Amazon ECR-->>-"GitHub Actions": "Image pushed successfully"
"GitHub Actions"->>+"GitHub Actions": "Download kubectl binary"
"GitHub Actions"->>+kubectl: "Setup kubectl and authenticate with EKS"
kubectl-->>-"GitHub Actions": "kubectl configured"
"GitHub Actions"->>+"Amazon EKS": "Update kubeconfig for eks-prod-406"
"Amazon EKS"-->>-"GitHub Actions": "Kubeconfig updated"
"GitHub Actions"->>+kubectl: "Update deployment image in lloyds namespace"
kubectl-->>-"GitHub Actions": "Deployment updated"
"GitHub Actions"->>+"AWS SSM": "Store successful deployment parameter"
"AWS SSM"-->>-"GitHub Actions": "Parameter stored"
"GitHub Actions"-->>-GitHub: "Deployment complete"
|
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.
1 file reviewed, 2 comments
| branches: | ||
| - master | ||
|
|
||
| name: Website CI on AWS S3 |
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.
style: Workflow name mentions S3 but actually deploys to EKS - misleading title
| name: Website CI on AWS S3 | |
| name: Website CI/CD for EKS Deployment |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/mastercicd.yml
Line: 6:6
Comment:
**style:** Workflow name mentions S3 but actually deploys to EKS - misleading title
```suggestion
name: Website CI/CD for EKS Deployment
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.| echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
| echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" |
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.
syntax: Using deprecated set-output and ##[set-output] commands - GitHub deprecated these in favor of $GITHUB_OUTPUT
| echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
| echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | |
| echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | |
| echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT |
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/mastercicd.yml
Line: 43:44
Comment:
**syntax:** Using deprecated `set-output` and `##[set-output]` commands - GitHub deprecated these in favor of `$GITHUB_OUTPUT`
```suggestion
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
```
How can I resolve this? If you propose a fix, please make it concise.
Add CI/CD for the master branch