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
+28-16Lines changed: 28 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,10 @@ container: |
207
207
"env": {
208
208
"NODE_ENV": "production"
209
209
},
210
-
"options": "--cpus 2"
210
+
"options": "--cpus 2",
211
+
"credentials": {
212
+
"username": "myusername"
213
+
}
211
214
}
212
215
```
213
216
@@ -216,22 +219,28 @@ container: |
216
219
- `image`(string, required) - Container image name
217
220
- `env`(object) - Environment variables
218
221
- `options`(string) - Additional Docker options
222
+
- `credentials`(object) - Registry credentials with `username` property
219
223
220
224
**Note:** `ports` and `volumes` are not currently supported due to GitHub Actions workflow syntax limitations.
221
225
222
226
#### Container Registry Credentials
223
227
224
-
For private container images, use the `container-registry-username` and `container-registry-password` secrets:
228
+
For private container images, specify the username in the container input's `credentials.username` property and pass the password via the `container-registry-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.
@@ -242,16 +251,14 @@ When specified, steps will execute inside this container instead of checking out
0 commit comments