Skip to content

Commit

Permalink
Merge pull request #49 from imrishuroy/admin
Browse files Browse the repository at this point in the history
update deployment
  • Loading branch information
imrishuroy authored Jul 31, 2024
2 parents d2416d7 + 6b91a50 commit dd3d6a0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,23 @@ jobs:
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: legalreferral
IMAGE_TAG: ${{ github.sha }}
IMAGE_TAG: "latest"
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Set image tag
run: echo "IMAGE_TAG=${{ github.sha }}" >> $GITHUB_ENV

- name: Update kube config
run: aws eks update-kubeconfig --name legalreferral --region ap-south-1

- name: Deploy image to Amazon EKS
env:
IMAGE_TAG: ${{ env.IMAGE_TAG }}
run: |
kustomize build eks | kubectl apply -f -
kubectl apply -f eks/aws-auth.yaml
kubectl apply -f eks/deployment.yaml
kubectl apply -f eks/service.yaml
kubectl apply -f eks/issuer.yaml
kubectl apply -f eks/ingress.yaml
2 changes: 1 addition & 1 deletion eks/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: legal-referral-api
image: 010928181431.dkr.ecr.ap-south-1.amazonaws.com/legalreferral:${IMAGE_TAG}
image: 010928181431.dkr.ecr.ap-south-1.amazonaws.com/legalreferral:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
Expand Down
6 changes: 0 additions & 6 deletions eks/ingress-ngnix.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions eks/kustomization.yaml

This file was deleted.

0 comments on commit dd3d6a0

Please sign in to comment.