Build defiant
This commit is contained in:
parent
ebb54c74e7
commit
8ab5245778
10 changed files with 261 additions and 0 deletions
|
@ -2,9 +2,11 @@ variables:
|
|||
WEBSITE_SRC: ${CI_PROJECT_DIR}/website
|
||||
INFRA_SRC: ${CI_PROJECT_DIR}/infra
|
||||
TEAMSPEAK_SRC: ${CI_PROJECT_DIR}/teamspeak
|
||||
DEFIANT_SRC: ${CI_PROJECT_DIR}/defiant
|
||||
|
||||
IMAGE_PREFIX: registry.gitlab.com/momothereal/momoperes.ca
|
||||
WEBSITE_IMAGE: ${IMAGE_PREFIX}/website
|
||||
DEFIANT_IMAGE: ${IMAGE_PREFIX}/defiant
|
||||
|
||||
KUBECONFIG_PARENT: /etc/deploy
|
||||
KUBECONFIG: ${KUBECONFIG_PARENT}/config
|
||||
|
@ -48,6 +50,8 @@ website:deploy:
|
|||
changes:
|
||||
- website/**/*
|
||||
|
||||
# INFRA #
|
||||
|
||||
infra:deploy:
|
||||
stage: deploy
|
||||
image: lwolf/helm-kubectl-docker:v1.15.4-v2.14.3
|
||||
|
@ -68,6 +72,8 @@ infra:deploy:
|
|||
changes:
|
||||
- infra/**/*
|
||||
|
||||
# TEAMSPEAK #
|
||||
|
||||
teamspeak:deploy:
|
||||
stage: deploy
|
||||
image: lwolf/helm-kubectl-docker:v1.15.4-v2.14.3
|
||||
|
@ -85,3 +91,22 @@ teamspeak:deploy:
|
|||
- master
|
||||
changes:
|
||||
- teamspeak/**/*
|
||||
|
||||
# DEFIANT #
|
||||
|
||||
defiant:release:
|
||||
stage: release
|
||||
image:
|
||||
name: gcr.io/kaniko-project/executor:debug
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- cd ${DEFIANT_SRC}/src
|
||||
- git clone https://github.com/momothereal/code-jam-2.git defiant
|
||||
- cp main_config.yaml defiant/config/main_config.yaml
|
||||
|
||||
- echo "Building to ${DEFIANT_IMAGE}:${CI_COMMIT_TAG}"
|
||||
- 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/**/*
|
Loading…
Add table
Add a link
Reference in a new issue