stages: - pruefen - testen - bauen - ausrollen-test - ausrollen-prod variables: IMAGE: "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" # ... Stufen aus Kapitel 5 ... ausrollen-test: stage: ausrollen-test environment: name: test url: https://kfz-test.intern script: - ./scripts/deploy.sh test "$IMAGE" - ./scripts/smoketest.sh https://kfz-test.intern rules: - if: $CI_COMMIT_BRANCH == "main" ausrollen-prod: stage: ausrollen-prod environment: name: produktion url: https://kfz.intern script: - ./scripts/deploy.sh produktion "$IMAGE" - ./scripts/smoketest.sh https://kfz.intern rules: - if: $CI_COMMIT_BRANCH == "main" when: manual # <- genau hier liegt der Unterschied allow_failure: false