Created
December 13, 2024 20:15
-
-
Save cdbkr/2b70f1a1bd92e92f4b9a535f6f287101 to your computer and use it in GitHub Desktop.
.github/workflows/cd.yaml
This file contains hidden or 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 Prod K8S Env | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
name: Deploy Environment | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Deploy to prod cluster | |
uses: kodermax/kubectl-aws-eks@master | |
env: | |
KUBE_CONFIG_DATA: ${{ secrets.PROD_KUBECONFIG }} | |
KUBECTL_VERSION: "v1.25.0" | |
with: | |
args: apply -f ${{ steps.kustomize-build-prod.outputs.manifest-file }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment