Skip to content

Commit

Permalink
deploy-part-test
Browse files Browse the repository at this point in the history
  • Loading branch information
yordanovsstoyan committed Nov 12, 2024
1 parent 3e44283 commit 96be761
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 19 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
17 changes: 17 additions & 0 deletions pod.yaml
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
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ variable "cluster_version" {

variable "ecr_name" {
type = string
default = "my-ecr"
default = "mysql-connect-app"
}

0 comments on commit 96be761

Please sign in to comment.