|
104 | 104 | ``` |
105 | 105 |
|
106 | 106 | Supported properties: image (required), env (object), options (string). |
107 | | - Note: ports and volumes are not currently supported due to GitHub Actions limitations. |
108 | | -
|
109 | | - For container registry credentials (username/password), use the container-registry-username |
110 | | - and container-registry-password secrets. |
| 107 | + Note: ports, volumes, and credentials are not currently supported due to GitHub Actions limitations. |
111 | 108 |
|
112 | 109 | See https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/run-jobs-in-a-container |
113 | 110 |
|
|
126 | 123 | SECRET_EXAMPLE=$\{{ secrets.SECRET_EXAMPLE }} |
127 | 124 | ``` |
128 | 125 | required: false |
129 | | - container-registry-password: |
130 | | - description: | |
131 | | - Password or token for authenticating to the container registry. |
132 | | - Required when using private container images. |
133 | | - The username should be specified in the container input's credentials.username property. |
134 | | - required: false |
135 | 126 | outputs: |
136 | 127 | build-artifact-id: |
137 | 128 | description: "ID of the build artifact) uploaded during the build step." |
@@ -176,13 +167,6 @@ jobs: |
176 | 167 | config.env = container.env; |
177 | 168 | } |
178 | 169 | |
179 | | - // Add credentials username if provided |
180 | | - if (container.credentials && container.credentials.username) { |
181 | | - config.credentials = { |
182 | | - username: container.credentials.username |
183 | | - }; |
184 | | - } |
185 | | - |
186 | 170 | // Merge user options with default --user root:root |
187 | 171 | if (container.options) { |
188 | 172 | config.options = `${config.options} ${container.options}`; |
@@ -228,9 +212,6 @@ jobs: |
228 | 212 | image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }} |
229 | 213 | env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }} |
230 | 214 | options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }} |
231 | | - credentials: |
232 | | - username: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).credentials.username || null }} |
233 | | - password: ${{ secrets.container-registry-password }} |
234 | 215 | needs: parse-container |
235 | 216 | if: ${{ always() && !cancelled() && !failure() }} |
236 | 217 | permissions: |
@@ -352,9 +333,6 @@ jobs: |
352 | 333 | image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }} |
353 | 334 | env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }} |
354 | 335 | options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }} |
355 | | - credentials: |
356 | | - username: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).credentials.username || null }} |
357 | | - password: ${{ secrets.container-registry-password }} |
358 | 336 | needs: |
359 | 337 | - parse-container |
360 | 338 | - setup |
@@ -414,9 +392,6 @@ jobs: |
414 | 392 | image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }} |
415 | 393 | env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }} |
416 | 394 | options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }} |
417 | | - credentials: |
418 | | - username: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).credentials.username || null }} |
419 | | - password: ${{ secrets.container-registry-password }} |
420 | 395 | needs: |
421 | 396 | - parse-container |
422 | 397 | - setup |
@@ -466,9 +441,6 @@ jobs: |
466 | 441 | image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }} |
467 | 442 | env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }} |
468 | 443 | options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }} |
469 | | - credentials: |
470 | | - username: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).credentials.username || null }} |
471 | | - password: ${{ secrets.container-registry-password }} |
472 | 444 | needs: |
473 | 445 | - parse-container |
474 | 446 | - setup |
|
0 commit comments