test kubectl

This commit is contained in:
ducoterra
2020-04-22 13:01:43 -04:00
parent 6eb1a98f4d
commit b526202a01

View File

@@ -6,6 +6,7 @@ variables:
stages:
- build
- test
- deploy
push:
stage: build
@@ -30,4 +31,15 @@ project:
name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
entrypoint: [""]
script:
- django-admin startproject config .
- django-admin startproject config .
pods:
stage: deploy
image:
name: ubuntu:18.04
entrypoint: [""]
script:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- ./kubectl version --client
- ./kubectl get po