gh_workflow_single
TemplateVars
¶
Workflow
¶
Bases: BaseModel
Helper class to write the m
workflow.
Attributes:
Name | Type | Description |
---|---|---|
m_dir |
str
|
... |
ci_dir |
str
|
... |
global_env |
dict[str, str] | None
|
... |
default_runner |
str
|
... |
docker_registry |
str
|
... |
extra_build_steps |
list[dict[str, Any]] | None
|
... |
extra_inputs |
dict[str, GithubWorkflowInput] | None
|
... |
container |
dict[str, Any] | None
|
... |
images |
list[DockerImage]
|
... |
Source code in m/ci/docker/gh_workflow_single.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
|
__str__()
¶
Stringify the workflow file.
Returns:
Type | Description |
---|---|
str
|
The github workflow. |
Source code in m/ci/docker/gh_workflow_single.py
build_steps_str()
¶
Generate a github action str for the build steps.
Returns:
Type | Description |
---|---|
str
|
A string to add to the Github workflow. |
Source code in m/ci/docker/gh_workflow_single.py
container_str()
¶
Generate a string specifying a container to run on.
Returns:
Type | Description |
---|---|
str
|
A string to add to the Github workflow. |
Source code in m/ci/docker/gh_workflow_single.py
docker_login_str()
¶
Generate a github action str to login to docker.
Returns:
Type | Description |
---|---|
str
|
A string to add to the Github workflow. |
Source code in m/ci/docker/gh_workflow_single.py
extra_inputs_str()
¶
Generate a github action str with the extra inputs.
Returns:
Type | Description |
---|---|
str
|
A string to add to the Github workflow. |
Source code in m/ci/docker/gh_workflow_single.py
global_env_str()
¶
Generate a github action str with the global environment variables.
Returns:
Type | Description |
---|---|
str
|
A string to add to the Github workflow. |