Last active
November 24, 2025 10:02
-
-
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: | |
| deploy: | |
| name: Deploy Environment | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Kustomize | |
| uses: imranismail/setup-kustomize@v1 | |
| with: | |
| kustomize-version: "4.5.7" | |
| - name: Kustomize build (prod) | |
| run: kustomize build . > manifest.yaml | |
| - 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 manifest.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment