|
11 | 11 | # The image inventory is generated from the chart and checked here, so a |
12 | 12 | # change to its generator has to run this workflow too. |
13 | 13 | - 'scripts/generate-image-manifest.ts' |
| 14 | + - 'scripts/write-chart-sandbox-images.ts' |
14 | 15 | - 'package.json' |
15 | 16 | pull_request: |
16 | 17 | branches: [main, staging, dev] |
|
22 | 23 | # The image inventory is generated from the chart and checked here, so a |
23 | 24 | # change to its generator has to run this workflow too. |
24 | 25 | - 'scripts/generate-image-manifest.ts' |
| 26 | + - 'scripts/write-chart-sandbox-images.ts' |
25 | 27 | - 'package.json' |
26 | 28 |
|
27 | 29 | # Pull requests cancel a superseded run; pushes never do, so a newer push cannot cut off a chart |
@@ -302,6 +304,17 @@ jobs: |
302 | 304 | APP_VERSION: ${{ needs.release-version.outputs.version }} |
303 | 305 | run: bun run scripts/sync-chart-appversion.ts --version "${APP_VERSION}" |
304 | 306 |
|
| 307 | + # The published chart pre-pulls the Function sandbox image its appVersion runs, |
| 308 | + # read from the release tag; the file is gitignored, so only published charts |
| 309 | + # carry it. --verify renders the chart and checks the DaemonSet holds that image. |
| 310 | + - name: Bundle the release's sandbox Function image |
| 311 | + env: |
| 312 | + APP_VERSION: ${{ needs.release-version.outputs.version }} |
| 313 | + run: | |
| 314 | + set -euo pipefail |
| 315 | + git fetch --no-tags --depth=1 origin "refs/tags/${APP_VERSION}:refs/tags/${APP_VERSION}" |
| 316 | + bun run scripts/write-chart-sandbox-images.ts --version "${APP_VERSION}" --verify |
| 317 | +
|
305 | 318 | - name: Package chart |
306 | 319 | id: package |
307 | 320 | run: | |
@@ -498,6 +511,14 @@ jobs: |
498 | 511 | APP_VERSION: ${{ needs.release-version.outputs.version }} |
499 | 512 | run: bun run scripts/sync-chart-appversion.ts --version "${APP_VERSION}" |
500 | 513 |
|
| 514 | + # Same bundled sandbox image as the OCI publish, so both repos ship the same chart. |
| 515 | + # The full-history checkout already has the release tag. |
| 516 | + - name: Bundle the release's sandbox Function image |
| 517 | + if: steps.pages.outputs.exists == 'true' |
| 518 | + env: |
| 519 | + APP_VERSION: ${{ needs.release-version.outputs.version }} |
| 520 | + run: bun run scripts/write-chart-sandbox-images.ts --version "${APP_VERSION}" |
| 521 | + |
501 | 522 | - name: Configure Git |
502 | 523 | if: steps.pages.outputs.exists == 'true' |
503 | 524 | env: |
|
0 commit comments