Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Created December 13, 2024 20:15
Show Gist options
  • Save cdbkr/2b70f1a1bd92e92f4b9a535f6f287101 to your computer and use it in GitHub Desktop.
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:
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