diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 60465aa19..19eb7c4c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ include: - /git-deploy/.gitlab-ci.yml - /helm/.gitlab-ci.yml - /k8s-ns-killer/.gitlab-ci.yml + - /kubectl/.gitlab-ci.yml # variables: diff --git a/kubectl/.gitlab-ci.yml b/kubectl/.gitlab-ci.yml new file mode 100644 index 000000000..fd278f928 --- /dev/null +++ b/kubectl/.gitlab-ci.yml @@ -0,0 +1,20 @@ + + +Build socialgouv/docker/kubectl: + stage: "Build" + extends: .base_register_to_gitlab_stage + variables: + CONTEXT: kubectl + IMAGE_NAME: ${CI_REGISTRY_IMAGE}/kubectl + +Test socialgouv/docker/kubectl: + stage: "Test" + image: "${CI_REGISTRY_IMAGE}/kubectl:${CI_COMMIT_SHA}" + environment: feature-dev + script: + - kubectl version + +Publish socialgouv/docker/kubectl to Github Registry: + extends: .base_publish_to_github_stage + variables: + IMAGE_NAME: socialgouv/docker/kubectl