build(docker): set beta tag to production images for latest beta version
This commit is contained in:
parent
3234500e2d
commit
65173e5180
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue