Build defiant in separate step
This commit is contained in:
parent
8ab5245778
commit
dbb52a8421
1 changed files with 11 additions and 5 deletions
|
@ -94,16 +94,22 @@ teamspeak:deploy:
|
||||||
|
|
||||||
# DEFIANT #
|
# DEFIANT #
|
||||||
|
|
||||||
defiant:release:
|
defiant:build:
|
||||||
stage: release
|
stage: build
|
||||||
image:
|
image: alpine/git
|
||||||
name: gcr.io/kaniko-project/executor:debug
|
|
||||||
entrypoint: [""]
|
|
||||||
script:
|
script:
|
||||||
- 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
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- defiant/**/*
|
||||||
|
|
||||||
|
defiant:release:
|
||||||
|
stage: release
|
||||||
|
image:
|
||||||
|
name: gcr.io/kaniko-project/executor:debug
|
||||||
|
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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue