Deploy defiant
This commit is contained in:
parent
4704719583
commit
1cbea70a98
3 changed files with 20 additions and 2 deletions
|
@ -119,5 +119,23 @@ defiant:release:
|
|||
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"username\":\"${CI_REGISTRY_USER}\",\"password\":\"${CI_REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
|
||||
- /kaniko/executor --context ${DEFIANT_SRC}/src/defiant --dockerfile ${DEFIANT_SRC}/src/defiant/Dockerfile --destination ${DEFIANT_IMAGE}:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} --destination ${DEFIANT_IMAGE}:${CI_COMMIT_REF_SLUG}
|
||||
only:
|
||||
changes:
|
||||
- defiant/**/*
|
||||
|
||||
defiant:deploy:
|
||||
stage: deploy
|
||||
image: lwolf/helm-kubectl-docker:v1.15.4-v2.14.3
|
||||
script:
|
||||
- mkdir -p ${KUBECONFIG_PARENT}
|
||||
- echo ${K8S_CLUSTER_CONFIG} | base64 -d > ${KUBECONFIG}
|
||||
|
||||
# Deploy using helm chart
|
||||
- cd ${DEFIANT_SRC}/chart
|
||||
- mkdir -p manifests/
|
||||
- helm template ./defiant/ --output-dir manifests/ --name defiant -f ./defiant/values.yaml
|
||||
- kubectl apply --namespace ${DEPLOY_NAMESPACE} -R -f manifests/
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
changes:
|
||||
- defiant/**/*
|
Loading…
Add table
Add a link
Reference in a new issue