diff --git a/docker/production/.gitlab-ci.yml b/docker/production/.gitlab-ci.yml index a0f130c0ebf60992a6a278b81ebd091ac3170a09..0fb81be89274d40c6d99343a36ecd3325412f38e 100644 --- a/docker/production/.gitlab-ci.yml +++ b/docker/production/.gitlab-ci.yml @@ -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