Slide 75
Slide 75 text
GitHub Actions変数登録
for name, value := range map[string]string{
environment.EnvNameEnvVarName: p.env.GetEnvName(),
environment.LocationEnvVarName: p.env.GetLocation(),
environment.SubscriptionIdEnvVarName: p.env.GetSubscriptionId(),
} {
if err := p.ghCli.SetVariable(ctx, repoSlug, name, value); err != nil {
return fmt.Errorf("failed setting %s variable: %w", name, err)
}
p.console.MessageUxItem(ctx, &ux.CreatedRepoValue{
Name: name,
Kind: ux.GitHubVariable,
})
}
https://github.com/Azure/azure-
dev/blob/99ea7577f0df0df2ba34b677da189fafba18c0f7/cli/azd/pkg/pipeline/github_provider.go#L453
• 環境名、ロケーション、サブスクリプションIDがGitHub Actionsの変数に登録される
• そのほか、認証認可構成やIaCプロバイダーなどに応じて追加の変数が登録される