-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e44283
commit 96be761
Showing
3 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,25 +35,25 @@ jobs: | |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:latest mysql-connect-app | ||
docker push -a $ECR_REGISTRY/$ECR_REPOSITORY | ||
# deploy: | ||
# name: Deploy Helm chart | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
deploy: | ||
name: Deploy Helm chart | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Configure AWS credentials | ||
# uses: aws-actions/configure-aws-credentials@v1 | ||
# with: | ||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | ||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | ||
# aws-region: ${{ env.region }} | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | ||
aws-region: ${{ env.region }} | ||
|
||
# - uses: azure/[email protected] | ||
- uses: azure/[email protected] | ||
|
||
# - name: Install kubectl | ||
# uses: azure/setup-kubectl@v3 | ||
# id: install | ||
- name: Install kubectl | ||
uses: azure/setup-kubectl@v3 | ||
id: install | ||
|
||
# - name: Update kubeconfig | ||
# run: aws eks update-kubeconfig --name ${{ env.eks_cluster_name }} --region ${{ env.region }} | ||
- name: Update kubeconfig | ||
run: aws eks update-kubeconfig --name ${{ env.eks_cluster_name }} --region ${{ env.region }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: mysql-app-pod1 | ||
labels: | ||
app: mysql-app | ||
spec: | ||
containers: | ||
- name: mysql-app-container | ||
image: 997731127542.dkr.ecr.us-east-2.amazonaws.com/my-ecr | ||
env: | ||
- name: DB_HOST | ||
value: "rds-instance.cjy8uqoc8cxc.us-east-2.rds.amazonaws.com" # MySQL host | ||
- name: DB_USER | ||
value: "dbuser" | ||
- name: DB_PASSWORD | ||
value: "TsgsjxfSEjW7oSqmXFjt" # MySQL password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters