|
9 | 9 | required: true |
10 | 10 | type: string |
11 | 11 | image-name: |
12 | | - description: "Name of the Docker image to build, without registry or tag. E.g. 'my-image' or 'my-org/my-image'" |
| 12 | + description: >- |
| 13 | + Name of the Docker image to build, without registry or tag. |
| 14 | +
|
| 15 | + Examples: |
| 16 | + 'my-image' |
| 17 | + 'my-org/my-image' |
13 | 18 | required: true |
14 | 19 | type: string |
15 | 20 | devcontainer-metadata-file: |
16 | | - description: "Path to a JSON file containing devcontainer metadata to add as a label to the built image" |
| 21 | + description: >- |
| 22 | + Path to a JSON file containing devcontainer metadata to add as a label to the built image. |
| 23 | +
|
| 24 | + Examples: |
| 25 | + '.devcontainer/devcontainer-metadata.json' |
| 26 | + '.devcontainer/<flavor>/devcontainer-metadata.json' |
17 | 27 | required: false |
18 | 28 | type: string |
19 | 29 | registry: |
20 | | - description: "Docker registry to push built containers to, DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD secrets must be set if not using GitHub Container Registry" |
| 30 | + description: >- |
| 31 | + Docker registry to push built containers to. |
| 32 | + `DOCKER_REGISTRY_USERNAME` and `DOCKER_REGISTRY_PASSWORD` secrets must be set if not using GitHub Container Registry (ghcr.io). |
21 | 33 | required: false |
22 | 34 | type: string |
23 | 35 | default: "ghcr.io" |
24 | 36 | build-test-runner-labels: |
25 | 37 | description: >- |
26 | | - JSON object passed to fromJson to become the build matrix. Example: |
27 | | - '["ubuntu-latest", "ubuntu-24.04-arm"]' |
| 38 | + JSON array used to select multi-architecture runners for build and test jobs. |
| 39 | + Must be valid JSON. |
| 40 | +
|
| 41 | + Examples: |
| 42 | + '["ubuntu-latest"]' |
| 43 | + '["ubuntu-latest", "ubuntu-24.04-arm"]' |
| 44 | + '[["self-hosted", "linux", "x86_64"], ["self-hosted", "linux", "arm64"]]' |
28 | 45 | required: false |
29 | 46 | type: string |
30 | 47 | default: '["ubuntu-latest", "ubuntu-24.04-arm"]' |
31 | 48 | runner-labels: |
32 | 49 | description: >- |
33 | | - Single runner label OR JSON array of runner labels for non-build jobs. |
| 50 | + JSON array used to select the default linux runner for non-build jobs. |
| 51 | + Must be valid JSON. |
| 52 | +
|
34 | 53 | Examples: |
35 | | - ubuntu-latest |
36 | 54 | '["ubuntu-latest"]' |
37 | 55 | '["self-hosted", "linux", "x86_64"]' |
38 | | - Provide a valid JSON array (starting with '[') to use multiple labels; any other value is treated as a single label string. |
39 | 56 | required: false |
40 | 57 | type: string |
41 | | - default: ubuntu-latest |
| 58 | + default: '["ubuntu-latest"]' |
42 | 59 | integration-test-file: |
43 | 60 | description: "Path to the BATS test file to run for integration tests" |
44 | 61 | required: false |
@@ -94,19 +111,20 @@ jobs: |
94 | 111 | integration-test: |
95 | 112 | name: 🧪 |
96 | 113 | if: ${{ inputs.integration-test-file }} |
97 | | - strategy: |
98 | | - matrix: |
99 | | - runner: ${{ (startsWith(inputs.build-test-runner-labels, '[') && endsWith(inputs.build-test-runner-labels, ']')) && fromJson(inputs.build-test-runner-labels) || inputs.build-test-runner-labels }} |
100 | 114 | needs: build-push |
101 | 115 | uses: ./.github/workflows/wc-integration-test.yml |
102 | 116 | permissions: |
103 | 117 | contents: read |
| 118 | + secrets: |
| 119 | + DOCKER_REGISTRY_USERNAME: ${{ secrets.DOCKER_REGISTRY_USERNAME }} |
| 120 | + DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} |
104 | 121 | with: |
| 122 | + build-test-runner-labels: ${{ inputs.build-test-runner-labels }} |
105 | 123 | fully-qualified-image-name: ${{ needs.build-push.outputs.fully-qualified-image-name }} |
106 | 124 | image-basename: ${{ needs.build-push.outputs.image-basename }} |
107 | 125 | image-digest: ${{ needs.build-push.outputs.digest }} |
| 126 | + registry: ${{ inputs.registry }} |
108 | 127 | test-file: ${{ inputs.integration-test-file }} |
109 | | - runner-labels: ${{ matrix.runner }} |
110 | 128 |
|
111 | 129 | acceptance-test: |
112 | 130 | name: 🏗️ |
|
0 commit comments