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
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ _**Note:** For urls like https://archive.org/services/project -- watch out for r
56
56
### Customizing
57
57
There are various options that can be used in conjunction with the `project.nomad` and `.gitlab-ci.yml` files, keys:
58
58
```text
59
+
NOMAD_VAR_BUILD_DEPLOY
59
60
NOMAD_VAR_CHECK_PATH
60
61
NOMAD_VAR_CHECK_PROTOCOL
61
62
NOMAD_VAR_CHECK_TIMEOUT
@@ -81,12 +82,21 @@ NOMAD_VAR_VOLUMES
81
82
- You can simply insert them, with values, in your project's `.gitlab-ci.yml` file before including _our_ [ci.yml](ci.yml) like above.
82
83
- Examples 👇
83
84
#### Don't actually deploy containers to nomad
84
-
Perhaps your project just wants to leverage the CI (Continuous Integration) for [buil] and/or [test] steps - but not CD (Continuous Deployment). An example might be a back-end container that runs elsewhere and doesn't have web listener.
85
+
Perhaps your project just wants to leverage the CI (Continuous Integration) for [build] and/or [test] steps - but not CD (Continuous Deployment). An example might be a back-end container that runs elsewhere and doesn't have web listener.
85
86
```yaml
86
87
variables:
87
88
NOMAD_VAR_NO_DEPLOY: 'true'
88
89
```
89
90
91
+
#### Build one docker image for CI and one docker image for CD
92
+
If your project might want to build & use a larger docker image for the CI (Continuous Integration)
93
+
and a smaller docker image for CD (Continuous Deploy), you can set this variable to an alternate
94
+
Dockerfile location in your repo, relative to the top dir.
95
+
```yaml
96
+
variables:
97
+
NOMAD_VAR_BUILD_DEPLOY: 'Dockerfile.deploy'
98
+
```
99
+
90
100
#### Custom default RAM expectations from (default) 300 MB to 1 GB
91
101
This value is the _expected_ value for your container's average running needs/usage, helpful for `nomad` scheduling purposes. It is a "soft limit" and we use *ten times* this amount to be the amount used for a "hard limit". If your allocated container exceeds the hard limit, the container may be restarted by `nomad` if there is memory pressure on the Virtual Machine the container is running on.
92
102
```yaml
@@ -216,6 +226,16 @@ variables:
216
226
NOMAD_VAR_NAMESPACE: 'team-titan'
217
227
```
218
228
229
+
#### Only `docker tag` to `:latest` after all CI passes
230
+
This is useful for repos that are setting up "serverless" docker images (typically don't do CD),
231
+
and the `:latest` tag could get re-pulled anytime after that tag is pushed to the registry.
232
+
The normal commit hash related tag will still get tagged & pushed, during [build], for CI tests.
233
+
The `:latest` tag will get tagged & pushed *after* all CI tests have succeeded.
0 commit comments