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: stages:
- build - build
- test - test
- deploy
push: push:
stage: build stage: build
@@ -31,3 +32,14 @@ project:
entrypoint: [""] entrypoint: [""]
script: 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