mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
CI: two deploy jobs (default image and slew image)
This commit is contained in:
parent
ec04fdc81b
commit
adde4c1b2e
1 changed files with 19 additions and 1 deletions
|
@ -30,7 +30,7 @@ build:
|
|||
# - build/
|
||||
# expire_in: 1 week
|
||||
|
||||
deploy:
|
||||
deploy:default:
|
||||
stage: deploy
|
||||
image:
|
||||
name: gcr.io/kaniko-project/executor:debug
|
||||
|
@ -40,8 +40,26 @@ deploy:
|
|||
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"username\":\"${CI_REGISTRY_USER}\",\"password\":\"${CI_REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
|
||||
- /kaniko/executor
|
||||
--context ${CI_PROJECT_DIR}
|
||||
--build-arg REACT_APP_BRAND=villasweb
|
||||
--dockerfile ${CI_PROJECT_DIR}/Dockerfile
|
||||
--destination ${DOCKER_IMAGE}:${DOCKER_TAG}
|
||||
--snapshotMode=redo
|
||||
dependencies:
|
||||
- build
|
||||
|
||||
deploy:slew:
|
||||
stage: deploy
|
||||
image:
|
||||
name: gcr.io/kaniko-project/executor:debug
|
||||
entrypoint: [ "" ]
|
||||
script:
|
||||
- mkdir -p /kaniko/.docker
|
||||
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"username\":\"${CI_REGISTRY_USER}\",\"password\":\"${CI_REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
|
||||
- /kaniko/executor
|
||||
--context ${CI_PROJECT_DIR}
|
||||
--build-arg REACT_APP_BRAND=slew
|
||||
--dockerfile ${CI_PROJECT_DIR}/Dockerfile
|
||||
--destination ${DOCKER_IMAGE}:${DOCKER_TAG}-slew
|
||||
--snapshotMode=redo
|
||||
dependencies:
|
||||
- build
|
||||
|
|
Loading…
Add table
Reference in a new issue