test kubectl
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user