Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Last active November 24, 2025 10:02
Show Gist options
  • Select an option

  • Save cdbkr/2b70f1a1bd92e92f4b9a535f6f287101 to your computer and use it in GitHub Desktop.

Select an option

Save cdbkr/2b70f1a1bd92e92f4b9a535f6f287101 to your computer and use it in GitHub Desktop.
.github/workflows/cd.yaml
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