diff --git a/ci-templates/gitlab/image-builder.yml b/ci-templates/gitlab/image-builder.yml index e552a42f..e53f006b 100644 --- a/ci-templates/gitlab/image-builder.yml +++ b/ci-templates/gitlab/image-builder.yml @@ -94,7 +94,6 @@ default: - docker pull $BASE_IMAGE .push: &push - - 'if [ "$ENVIRONMENT" = "production" -a -z "$CI_COMMIT_TAG" ]; then echo "You can only push to production when running the pipeline on a tag!" && exit 1; fi' - docker push $IMAGE:$DOCKER_TAG .ease: &ease diff --git a/docs/docs/ci-templates/gitlab/image-builder.md b/docs/docs/ci-templates/gitlab/image-builder.md index 12a265c8..7ff9014c 100644 --- a/docs/docs/ci-templates/gitlab/image-builder.md +++ b/docs/docs/ci-templates/gitlab/image-builder.md @@ -36,7 +36,7 @@ In addition, you have to add the following environment variables on repository l Make sure to enable the "Expand variable reference" flag. - `CAPELLA_DOCKER_IMAGES_REVISION`: Revision of this Github repository. -- `ENVIRONMENT`: Specifies the environemnt. We have included a safety gate, such that you are only able to push to the "production" environment on tags. In addition, you need to have the following variables for each environment: +- `ENVIRONMENT`: Specifies the environment. In addition, you need to have the following variables for each environment: - `UID_${ENVIRONMENT}`: The user ID which will be used for the technical user. - Variables related to the Docker registry (all parameters are passed to `docker login`): - `DOCKER_REGISTRY_${ENVIRONMENT}`: The URL to the Docker registry