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: .github/workflows/continuous-integration.md
+46-11Lines changed: 46 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,12 @@ container: |
207
207
"env": {
208
208
"NODE_ENV": "production"
209
209
},
210
-
"options": "--cpus 2"
210
+
"options": "--cpus 2",
211
+
"ports": [8080, 3000],
212
+
"volumes": ["/tmp:/tmp", "/cache:/cache"],
213
+
"credentials": {
214
+
"username": "myusername"
215
+
}
211
216
}
212
217
```
213
218
@@ -216,8 +221,29 @@ container: |
216
221
- `image`(string, required) - Container image name
217
222
- `env`(object) - Environment variables
218
223
- `options`(string) - Additional Docker options
224
+
- `ports`(array) - Port mappings
225
+
- `volumes`(array) - Volume mounts
226
+
- `credentials`(object) - Registry credentials with `username` property
219
227
220
-
**Note:** `ports`, `volumes`, and `credentials` are not currently supported due to GitHub Actions workflow syntax limitations.
228
+
#### Container Registry Credentials
229
+
230
+
For private container images, specify the username in the container input's `credentials.username` property and pass the password via the `container-password` secret:
See [GitHub's container specification](https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/run-jobs-in-a-container) for more details.
223
249
@@ -227,12 +253,14 @@ When specified, steps will execute inside this container instead of checking out
0 commit comments