build(docker): set beta tag to production images for latest beta version

This commit is contained in:
Yassine Doghri 2022-09-28 15:18:05 +00:00
parent 3234500e2d
commit 65173e5180
1 changed files with 3 additions and 1 deletions

View File

@ -41,11 +41,13 @@ docker-build-alpha-beta-release:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
variables:
TAG: $CI_COMMIT_BRANCH
script:
- cp ${DOCKER_HUB_CONFIG} /kaniko/.docker/config.json
- export CP_VERSION=$(cat CP_VERSION.env)
- /kaniko/executor --context . --dockerfile docker/production/web-server/Dockerfile --destination ${DOCKER_IMAGE_WEB_SERVER}:${CP_VERSION}
- /kaniko/executor --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${CP_VERSION}
- /kaniko/executor --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${CP_VERSION} --destination ${DOCKER_IMAGE_APP}:${TAG}
needs:
- pipeline: $PARENT_PIPELINE_ID
job: release