K8s job

stages:
  - ☸️

variables:
  GITLAB_GROUP: "yodamad-trash"
  GITLAB_PROJECT: "demo-kub"
  GITLAB_AGENT: "demo-cluster"

👀:
  stage: ☸️
  image:
    name: bitnami/kubectl:latest
    entrypoint: ['']
  script:
    - kubectl config get-contexts
    - kubectl config use-context $GITLAB_GROUP/$GITLAB_PROJECT:$GITLAB_AGENT
    - kubectl get pods --all-namespaces