kind: pipeline
type: docker
name: kubernetes

trigger:
  branch:
    - main
  event:
    - push

steps:
  - name: kustomization
    image: bitnami/kubectl:latest
    environment:
      KUBE_CONFIG:
        from_secret: KUBE_CONFIG
    commands:
      - kubectl kustomize ./kustomization/overlays/staging
      - kubectl apply -k ./kustomization/overlays/staging