diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c445489b574c6c5146e0bbb5ab1e4555eb7e03b..ba1f33cb983cbecbe7921826cc1bfc5b9e97c4b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ stages: - dast - staging - canary + - development - production - incremental rollout 10% - incremental rollout 25% @@ -104,6 +105,45 @@ review: variables: HELM_UPGRADE_EXTRA_ARGS: --set service.externalPort=80 --set service.internalPort=80 --set service.commonName= --set ingress.tls.enabled=false --set ingress.annotations.kubernetes\.io/tls-acme="false" --set ingress.annotations.nginx\.ingress\.kubernetes\.io/ssl-redirect="false" ROLLOUT_RESOURCE_TYPE: deployment + +.development: &development_template + extends: .auto-deploy + stage: development + script: + - auto-deploy check_kube_domain + - auto-deploy download_chart + - auto-deploy ensure_namespace + - auto-deploy initialize_tiller + - auto-deploy create_secret + - auto-deploy deploy + - auto-deploy delete canary + - auto-deploy delete rollout + - auto-deploy persist_environment_url + environment: + name: development + url: https://$CI_PROJECT_PATH_SLUG.$KUBE_INGRESS_BASE_DOMAIN + artifacts: + paths: [environment_url.txt] + +development: + <<: *development_template + only: + refs: + - development + kubernetes: active + variables: + HELM_UPGRADE_EXTRA_ARGS: --set service.externalPort=80 --set service.internalPort=80 --set service.commonName= --set ingress.annotations.certmanager\.k8s\.io/cluster-issuer=letsencrypt-prod + ROLLOUT_RESOURCE_TYPE: deployment + environment: + name: development + url: https://metager3.de + except: + variables: + - $STAGING_ENABLED + - $CANARY_ENABLED + - $INCREMENTAL_ROLLOUT_ENABLED + - $INCREMENTAL_ROLLOUT_MODE + production: variables: