Update main.tf #17
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
name: Deploy to EKS | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: [self-hosted] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Update kubeconfig | |
run: aws eks --region ap-south-1 update-kubeconfig --name EKS_CLOUD | |
- name: Deploy to EKS | |
run: kubectl delete -f deployment-service.yml | |