2022-06-26 14:03:22 +02:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
docker-build-rolling:
|
|
|
|
stage: build
|
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
|
|
entrypoint: [""]
|
|
|
|
variables:
|
|
|
|
TAG: $CI_COMMIT_BRANCH
|
|
|
|
script:
|
|
|
|
- cp ${DOCKER_HUB_CONFIG} /kaniko/.docker/config.json
|
2022-11-02 18:10:40 +01:00
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/web-server/Dockerfile --destination ${DOCKER_IMAGE_WEB_SERVER}:${TAG}
|
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${TAG}
|
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/video-clipper/Dockerfile --destination ${DOCKER_IMAGE_VIDEO_CLIPPER}:${TAG}
|
2022-06-26 14:03:22 +02:00
|
|
|
needs:
|
|
|
|
- pipeline: $PARENT_PIPELINE_ID
|
|
|
|
job: bundle
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- develop
|
2022-08-23 11:50:00 +02:00
|
|
|
|
|
|
|
docker-build-main-release:
|
|
|
|
stage: build
|
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
|
|
entrypoint: [""]
|
|
|
|
script:
|
|
|
|
- cp ${DOCKER_HUB_CONFIG} /kaniko/.docker/config.json
|
2022-09-06 18:19:06 +02:00
|
|
|
- export CP_VERSION=$(cat CP_VERSION.env)
|
2022-11-02 18:10:40 +01:00
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/web-server/Dockerfile --destination ${DOCKER_IMAGE_WEB_SERVER}:${CP_VERSION} --destination ${DOCKER_IMAGE_WEB_SERVER}:latest
|
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${CP_VERSION} --destination ${DOCKER_IMAGE_APP}:latest
|
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/video-clipper/Dockerfile --destination ${DOCKER_IMAGE_VIDEO_CLIPPER}:${CP_VERSION} --destination ${DOCKER_IMAGE_VIDEO_CLIPPER}:latest
|
2022-08-23 11:50:00 +02:00
|
|
|
needs:
|
|
|
|
- pipeline: $PARENT_PIPELINE_ID
|
|
|
|
job: release
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- main
|
|
|
|
|
|
|
|
docker-build-alpha-beta-release:
|
|
|
|
stage: build
|
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
|
|
entrypoint: [""]
|
2022-09-28 17:18:05 +02:00
|
|
|
variables:
|
|
|
|
TAG: $CI_COMMIT_BRANCH
|
2022-08-23 11:50:00 +02:00
|
|
|
script:
|
|
|
|
- cp ${DOCKER_HUB_CONFIG} /kaniko/.docker/config.json
|
2022-09-06 18:19:06 +02:00
|
|
|
- export CP_VERSION=$(cat CP_VERSION.env)
|
2022-11-02 18:10:40 +01:00
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/web-server/Dockerfile --destination ${DOCKER_IMAGE_WEB_SERVER}:${CP_VERSION} --destination ${DOCKER_IMAGE_WEB_SERVER}:${TAG}
|
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${CP_VERSION} --destination ${DOCKER_IMAGE_APP}:${TAG}
|
|
|
|
- /kaniko/executor --cleanup --context . --dockerfile docker/production/video-clipper/Dockerfile --destination ${DOCKER_IMAGE_VIDEO_CLIPPER}:${CP_VERSION} --destination ${DOCKER_IMAGE_VIDEO_CLIPPER}:${TAG}
|
2022-08-23 11:50:00 +02:00
|
|
|
needs:
|
|
|
|
- pipeline: $PARENT_PIPELINE_ID
|
|
|
|
job: release
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- alpha
|
|
|
|
- beta
|