-
Notifications
You must be signed in to change notification settings - Fork 249
GitHub Environments & Promotion Pipeline #5664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… flag; env-scoped cleanup & workflow matrix updates
… flag; env-scoped cleanup & workflow matrix updates
|
@microsoft-github-policy-service agree |
I am fine with this PR being rejected, as long as you can derive some benefit from the code to implement GitHub environments. |
Thanks @73dward5 for taking the time to submit this PR! I do like inspirationally where this is going, and this does help illuminate certain design details upfront for some work we have in the backlog with #5329. I'm curious to learn from your experience:
Thanks for taking the time to get this PR out and sharing your experience! |
|
GitHub Environments Opt-In & Force Regeneration
Overview
This adds optional flags to
azd pipeline config
to allow pushing environment variables/secrets to the GitHub environment instead of the repo level variables/secrets and federating the identity with that environment instead of the branch or PR.Adds:
--github-use-environments
to generate a GitHub Actions workflow using GitHub Environments (single or matrix when multiple azd envs).--force-regenerate
to overwrite the existing workflow unconditionally.Also: migration heuristics, federated credential pruning, repo variable cleanup, updated snapshots, lint/spelling fixes.
Key Changes
--github-use-environments
,--force-regenerate
max-parallel: 1
, secret/variable validationEnableGitHubEnvironments
,ForceRegenerateWorkflow
progess
→progress
golangci-lint
issues resolvedBehavior & Migration
--force-regenerate
Pruning Scope
Only deletes federated credentials with
:pull_request
or:ref:refs/heads/
(keeps:environment:
subjects).Testing
Risks & Mitigations
Follow-Ups
Checklist
Release Notes Blurb
Adds opt-in GitHub Environments workflow generation (
--github-use-environments
) and--force-regenerate
to forcibly recreate workflows, with automatic migration and cleanup of