summaryrefslogtreecommitdiff
path: root/spec/frontend/editor/schema/ci/json_tests/positive_tests/environment.json
blob: 0c6f7935063e5b64f8047b95a37941d2f3fa480d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
  "deploy to production 1": {
    "stage": "deploy",
    "script": "git push production HEAD: master",
    "environment": "production"
  },
  "deploy to production 2": {
    "stage": "deploy",
    "script": "git push production HEAD:master",
    "environment": {
      "name": "production"
    }
  },
  "deploy to production 3": {
    "stage": "deploy",
    "script": "git push production HEAD:master",
    "environment": {
      "name": "production",
      "url": "https://prod.example.com"
    }
  },
  "review_app 1": {
    "stage": "deploy",
    "script": "make deploy-app",
    "environment": {
      "name": "review/$CI_COMMIT_REF_NAME",
      "url": "https://$CI_ENVIRONMENT_SLUG.example.com",
      "on_stop": "stop_review_app"
    }
  },
  "stop_review_app": {
    "stage": "deploy",
    "variables": {
      "GIT_STRATEGY": "none"
    },
    "script": "make delete-app",
    "when": "manual",
    "environment": {
      "name": "review/$CI_COMMIT_REF_NAME",
      "action": "stop"
    }
  },
  "review_app 2": {
    "script": "deploy-review-app",
    "environment": {
      "name": "review/$CI_COMMIT_REF_NAME",
      "auto_stop_in": "1 day"
    }
  },
  "deploy 1": {
    "stage": "deploy",
    "script": "make deploy-app",
    "environment": {
      "name": "production",
      "kubernetes": {
        "namespace": "production"
      }
    }
  },
  "deploy 2": {
    "script": "echo",
    "environment": {
      "name": "customer-portal",
      "deployment_tier": "production"
    }
  },
  "deploy as review app": {
    "stage": "deploy",
    "script": "make deploy",
    "environment": {
      "name": "review/$CI_COMMIT_REF_NAME",
      "url": "https://$CI_ENVIRONMENT_SLUG.example.com/"
    }
  }
}