Deploy defiant

This commit is contained in:
Aram 🍐 2019-10-27 01:25:21 -04:00
parent 4704719583
commit 1cbea70a98
3 changed files with 20 additions and 2 deletions

View file

@ -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/**/*

View file

@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
name: rethinkb-{{ .Release.Name }}
labels:
app: rethinkdb
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}

View file

@ -5,7 +5,7 @@ web:
database:
# RethinkDB configuration
ip: "rethinkdb.public"
ip: "rethinkdb-defiant.public"
port: 28015
database_name: "battle_myth_theater"