You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/references/deploy.yml.md
+20-11Lines changed: 20 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,22 +11,31 @@ Field |Type |Required |Description
11
11
Field |Type |Required |Description
12
12
--- |---- |--- |---
13
13
`name` |*string* |`true` |This field is the runtime environment such as `production`, `staging`, and `qa`.
14
-
`task` |*string* |`false` |This field is used by the deployment system to distinguish the kind of deployment.
15
-
`description` |*string* |`false` |This field is the short description of the deployment.
16
-
`auto_merge` |*boolean* |`false` |This field is used to ensure that the requested ref is not behind the repository's default branch. If you deploy with the commit or the tag you need to set `false`. For rollback, Gitploy set the field `false`.
17
-
`required_contexts` |*[]string* |`false` |This field allows you to specify a subset of contexts that must be success.
18
-
`payload` |*object* or *string* |`false` |This field is JSON payload with extra information about the deployment.
14
+
`task` |*string* |`false` |This field is used by the deployment system to distinguish the kind of deployment. (*Only for `GitHub`*)
15
+
`description` |*string* |`false` |This field is the short description of the deployment. (*Only for `GitHub`*)
16
+
`auto_merge` |*boolean* |`false` |This field is used to ensure that the requested ref is not behind the repository's default branch. If you deploy with the commit or the tag you need to set `false`. For rollback, Gitploy set the field `false`. (*Only for `GitHub`*)
17
+
`required_contexts` |*[]string* |`false` |This field allows you to specify a subset of contexts that must be success. (*Only for `GitHub`*)
18
+
`payload` |*object* or *string* |`false` |This field is JSON payload with extra information about the deployment. (*Only for `GitHub`*)
19
19
`production_environment` |*boolean* |`false` |This field specifies whether this runtime environment is production or not.
20
20
`deployable_ref` |*string* |`false` |This field specifies which the ref(branch, SHA, tag) is deployable or not. It supports the regular expression ([re2]((https://github.com/google/re2/wiki/Syntax))).
21
21
`auto_deploy_on` |*string* |`false` |This field controls auto-deployment behaviour given a ref(branch, SHA, tag). If any new push events are detected on this event, the deployment will be triggered. It supports the regular expression ([re2](https://github.com/google/re2/wiki/Syntax)). E.g. `refs/heads/main` or `refs/tags/v.*`
22
-
`review` |*[Review](#review)* |`false` |This field configures review.
22
+
`review` |*[Review](#review)* |`false` |This field configures reviewers.
23
+
`frozen_windows` |*[][Frozen Window](#frozen-window)* |`false` |This field configures to add a frozen window to prevent unintended deployment for the environment.
23
24
24
25
## Review
25
26
26
-
Field |Type |Tag |Description
27
-
--- |--- |--- |---
28
-
`enabled` |*boolean* |`true` |This field make to enable the review feature. The default value is `false`.
29
-
`reviewers` |*[]string* |`false` |This field list up reviewers. The default value is `[]`. You should specify maintainers of the project.
27
+
Field |Type |Required |Description
28
+
--- |--- |--- |---
29
+
`enabled` |*boolean* |`false` |This field makes to enables the review feature. The default value is `false`.
30
+
`reviewers` |*[]string* |`false` |This field list up reviewers. The default value is `[]`. You should specify the maintainers of the project.
31
+
32
+
## Frozen Window
33
+
34
+
Field |Type |Required |Description
35
+
--- |--- |--- |---
36
+
`start` |*string* |`true` |This field is a cron expression to indicate when the window starts. For example, `55 23 * * *` means it starts to freeze a window before 5 minutes of midnight. You can check the [documentation](https://github.com/gitploy-io/cronexpr) for details.
37
+
`duration` |*string* |`true` |This field configures how long the window is frozen from the starting. The duration string is a possibly signed sequence of decimal numbers and a unit suffix such as `5m`, or `1h30m`. Valid time units are `ns`, `us`, `ms`, `s`, `m`, `h`.
38
+
`location` |*string* |`false` |This field configures the location of the `start` time. The value is taken to be a location name corresponding to a file in the IANA Time Zone database, such as `America/New_York`. The default value is `UTC`. You can check the [document](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for the Time Zone database name.
30
39
31
40
## Variables
32
41
@@ -36,7 +45,7 @@ The following variables are available in `${ }` syntax when evaluating `deploy.y
36
45
*`GITPLOY_ROLLBACK_TASK`: Returns `rollback` for rollback, but deploy, it returns the empty string.
37
46
*`GITPLOY_IS_ROLLBACK`: Returns `true` for rollback, but deploy, it returns `false`.
0 commit comments