Skip to content

Route submit job through GitHub environments#66

Merged
robtaylor merged 1 commit intomainfrom
fix-environment-routing
Feb 14, 2026
Merged

Route submit job through GitHub environments#66
robtaylor merged 1 commit intomainfrom
fix-environment-routing

Conversation

@robtaylor
Copy link
Contributor

Summary

  • Adds environment: to the submit job, using inputs.ENVIRONMENT (defaulting to staging)
  • Environment-level CHIPFLOW_API_ORIGIN and CHIPFLOW_API_KEY have been configured for both staging and production environments
  • Staging submits to build.staging.chipflow.com, production to build.chipflow.com
  • Non-workflow_dispatch triggers (push, PR, merge_group, repository_dispatch) default to staging

Test plan

  • Merge and trigger workflow_dispatch with ENVIRONMENT=staging - verify builds submit to staging API
  • Trigger workflow_dispatch with ENVIRONMENT=production - verify builds submit to production API
  • Verify push to main defaults to staging

…solation

The submit job now uses the ENVIRONMENT input (defaulting to staging) to
pick up environment-specific CHIPFLOW_API_ORIGIN and CHIPFLOW_API_KEY,
preventing staging builds from hitting the production API and vice versa.

Co-developed-by: Claude Code v2.1.42 (claude-opus-4-6)
@robtaylor robtaylor merged commit effb504 into main Feb 14, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant