refactor(ci): consolidate sandbox build into publish workflow

- Moves the sandbox build and publish logic into the main
  `build-and-publish` workflow.
- The sandbox image is now built *after* the NPM package is published,
  and uses the published package.
- Removes the redundant `build-sandbox` and `release-sandbox` workflows.
- Updates the `orchestrator` workflow to reflect these changes.
This commit is contained in:
mkorwel
2025-10-23 09:52:11 -07:00
parent a4b05d8346
commit 14707b6d5e
4 changed files with 53 additions and 177 deletions
+2 -16
View File
@@ -53,28 +53,14 @@ jobs:
- id: 'get-vars'
run: 'echo ''cli-package-name=''''${{ vars.CLI_PACKAGE_NAME }}'''''' >> "$GITHUB_OUTPUT"'
build-sandbox:
name: 'Build Sandbox Image'
needs: 'lint'
uses: './.github/workflows/build-sandbox.yml'
with:
github-actor: '${{ github.actor }}'
github-secret: '${{ github.token }}'
github-sha: '${{ github.sha }}'
github-ref-name: '${{ github.ref_name }}'
dry-run: false
npm-registry-scope: '${{ vars.NPM_REGISTRY_SCOPE }}'
npm-registry-url: '${{ vars.NPM_REGISTRY_URL }}'
cli-package-name: '${{ vars.CLI_PACKAGE_NAME }}'
e2e:
name: 'E2E Checks'
needs: ['build-and-publish', 'get-vars', 'build-sandbox']
needs: ['build-and-publish', 'get-vars']
uses: './.github/workflows/e2e.yml'
with:
version: '${{ needs.build-and-publish.outputs.version }}'
cli-package-name: '${{ needs.get-vars.outputs.cli-package-name }}'
image-uri: '${{ needs.build-sandbox.outputs.image-uri }}'
image-uri: '${{ needs.build-and-publish.outputs.image-uri }}'
secrets:
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'