test kubectl without pipeline

This commit is contained in:
ducoterra
2020-04-22 13:02:07 -04:00
parent b526202a01
commit 19dc89619d

View File

@@ -4,34 +4,34 @@ variables:
CI_COMMIT_TAG: 3.8.2_1 CI_COMMIT_TAG: 3.8.2_1
stages: stages:
- build # - build
- test # - test
- deploy - deploy
push: # push:
stage: build # stage: build
image: # image:
name: gcr.io/kaniko-project/executor:debug # name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] # entrypoint: [""]
script: # script:
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json # # - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG # - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
pip: # pip:
stage: test # stage: test
image: # image:
name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG # name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
entrypoint: [""] # entrypoint: [""]
script: # script:
- echo $(pip freeze) # - echo $(pip freeze)
project: # project:
stage: test # stage: test
image: # image:
name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG # name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
entrypoint: [""] # entrypoint: [""]
script: # script:
- django-admin startproject config . # - django-admin startproject config .
pods: pods:
stage: deploy stage: deploy