Disable Defiant temporarily
This commit is contained in:
parent
a5f1f2af9d
commit
c4bf93de0c
1 changed files with 42 additions and 42 deletions
|
@ -94,50 +94,50 @@ teamspeak:deploy:
|
||||||
|
|
||||||
# DEFIANT #
|
# DEFIANT #
|
||||||
|
|
||||||
defiant:build:
|
#defiant:build:
|
||||||
stage: build
|
# stage: build
|
||||||
image: debian
|
# image: debian
|
||||||
script:
|
# script:
|
||||||
- apt-get update && apt-get install -y git
|
# - apt-get update && apt-get install -y git
|
||||||
- cd ${DEFIANT_SRC}/src
|
# - cd ${DEFIANT_SRC}/src
|
||||||
- git clone https://github.com/momothereal/code-jam-2.git defiant
|
# - git clone https://github.com/momothereal/code-jam-2.git defiant
|
||||||
- cp main_config.yaml defiant/config/main_config.yaml
|
# - cp main_config.yaml defiant/config/main_config.yaml
|
||||||
artifacts:
|
# artifacts:
|
||||||
paths:
|
# paths:
|
||||||
- ${DEFIANT_SRC}/src
|
# - ${DEFIANT_SRC}/src
|
||||||
only:
|
# only:
|
||||||
changes:
|
# changes:
|
||||||
- defiant/**/*
|
# - defiant/**/*
|
||||||
|
|
||||||
defiant:release:
|
#defiant:release:
|
||||||
stage: release
|
# stage: release
|
||||||
image:
|
# image:
|
||||||
name: gcr.io/kaniko-project/executor:debug
|
# name: gcr.io/kaniko-project/executor:debug
|
||||||
entrypoint: [""]
|
# entrypoint: [""]
|
||||||
script:
|
# script:
|
||||||
- echo "Building to ${DEFIANT_IMAGE}:${CI_COMMIT_TAG}"
|
# - echo "Building to ${DEFIANT_IMAGE}:${CI_COMMIT_TAG}"
|
||||||
- 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 ${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}
|
# - /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:
|
# only:
|
||||||
changes:
|
# changes:
|
||||||
- defiant/**/*
|
# - defiant/**/*
|
||||||
|
|
||||||
defiant:deploy:
|
#defiant:deploy:
|
||||||
stage: deploy
|
# stage: deploy
|
||||||
image: lwolf/helm-kubectl-docker:v1.15.4-v2.14.3
|
# image: lwolf/helm-kubectl-docker:v1.15.4-v2.14.3
|
||||||
script:
|
# script:
|
||||||
- mkdir -p ${KUBECONFIG_PARENT}
|
# - mkdir -p ${KUBECONFIG_PARENT}
|
||||||
- echo ${K8S_CLUSTER_CONFIG} | base64 -d > ${KUBECONFIG}
|
# - echo ${K8S_CLUSTER_CONFIG} | base64 -d > ${KUBECONFIG}
|
||||||
|
#
|
||||||
# Deploy using helm chart
|
# # Deploy using helm chart
|
||||||
- cd ${DEFIANT_SRC}
|
# - cd ${DEFIANT_SRC}
|
||||||
- helm init --client-only && helm repo update
|
# - helm init --client-only && helm repo update
|
||||||
- helm upgrade --install --force --namespace ${DEPLOY_NAMESPACE} --set image.name=${DEFIANT_IMAGE},image.tag=${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} defiant ./chart/defiant
|
# - helm upgrade --install --force --namespace ${DEPLOY_NAMESPACE} --set image.name=${DEFIANT_IMAGE},image.tag=${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} defiant ./chart/defiant
|
||||||
only:
|
# only:
|
||||||
refs:
|
# refs:
|
||||||
- master
|
# - master
|
||||||
changes:
|
# changes:
|
||||||
- defiant/**/*
|
# - defiant/**/*
|
||||||
|
|
||||||
# CHART MUSEUM #
|
# CHART MUSEUM #
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue