mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-13 21:07:00 -07:00
fix(ci): correct workflow variable passing
- Adds explicit inputs for variables required by the reusable `build-and-publish` workflow. - Updates the `orchestrator` workflow to pass these variables correctly. - Removes a duplicated job from the `orchestrator` workflow.
This commit is contained in:
@@ -3,6 +3,19 @@ name: 'Build and Publish Bundle'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
cli-package-name:
|
||||
description: 'The name of the CLI package.'
|
||||
required: true
|
||||
type: 'string'
|
||||
npm-registry-scope:
|
||||
description: 'NPM registry scope'
|
||||
required: true
|
||||
type: 'string'
|
||||
npm-registry-url:
|
||||
description: 'NPM registry URL'
|
||||
required: true
|
||||
type: 'string'
|
||||
outputs:
|
||||
version:
|
||||
description: 'The version of the published package'
|
||||
@@ -113,9 +126,9 @@ jobs:
|
||||
--file Dockerfile \
|
||||
--tag "${IMAGE_TAG}" \
|
||||
--build-arg CLI_VERSION=${{ needs.publish-bundle.outputs.version }} \
|
||||
--build-arg NPM_REGISTRY_SCOPE=${{ vars.NPM_REGISTRY_SCOPE }} \
|
||||
--build-arg NPM_REGISTRY_URL=${{ vars.NPM_REGISTRY_URL }} \
|
||||
--build-arg CLI_PACKAGE_NAME=${{ vars.CLI_PACKAGE_NAME }} \
|
||||
--build-arg NPM_REGISTRY_SCOPE=${{ inputs.npm-registry-scope }} \
|
||||
--build-arg NPM_REGISTRY_URL=${{ inputs.npm-registry-url }} \
|
||||
--build-arg CLI_PACKAGE_NAME=${{ inputs.cli-package-name }} \
|
||||
--secret id=GITHUB_TOKEN
|
||||
docker push "${IMAGE_TAG}"
|
||||
echo "uri=${IMAGE_TAG}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
@@ -37,29 +37,18 @@ jobs:
|
||||
name: 'Build and Publish CI Bundle'
|
||||
needs: 'lint'
|
||||
uses: './.github/workflows/build-and-publish.yml'
|
||||
|
||||
ci:
|
||||
name: 'CI Checks'
|
||||
needs: 'lint'
|
||||
uses: './.github/workflows/ci.yml'
|
||||
|
||||
get-vars:
|
||||
name: 'Get Environment Variables'
|
||||
runs-on: 'ubuntu-latest'
|
||||
environment: 'dev'
|
||||
outputs:
|
||||
cli-package-name: '${{ steps.get-vars.outputs.cli-package-name }}'
|
||||
steps:
|
||||
- id: 'get-vars'
|
||||
run: 'echo ''cli-package-name=''''${{ vars.CLI_PACKAGE_NAME }}'''''' >> "$GITHUB_OUTPUT"'
|
||||
with:
|
||||
cli-package-name: '${{ vars.CLI_PACKAGE_NAME }}'
|
||||
npm-registry-scope: '${{ vars.NPM_REGISTRY_SCOPE }}'
|
||||
npm-registry-url: '${{ vars.NPM_REGISTRY_URL }}'
|
||||
|
||||
e2e:
|
||||
name: 'E2E Checks'
|
||||
needs: ['build-and-publish', 'get-vars']
|
||||
needs: ['build-and-publish']
|
||||
uses: './.github/workflows/e2e.yml'
|
||||
with:
|
||||
version: '${{ needs.build-and-publish.outputs.version }}'
|
||||
cli-package-name: '${{ needs.get-vars.outputs.cli-package-name }}'
|
||||
cli-package-name: '${{ vars.CLI_PACKAGE_NAME }}'
|
||||
image-uri: '${{ needs.build-and-publish.outputs.image-uri }}'
|
||||
secrets:
|
||||
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
|
||||
|
||||
Reference in New Issue
Block a user