pulumi / pulumi-github

A Pulumi package to facilitate interacting with GitHub
Apache License 2.0
56 stars 10 forks source link

Environment Deployment Policy for tags #692

Closed av-andrii-ievtukhov closed 2 weeks ago

av-andrii-ievtukhov commented 3 weeks ago

Hey guys!

We have a repository where we have to support deployments from both branches and tags, and we are not able to find information regarding tags in pulumi documentation here - https://www.pulumi.com/registry/packages/github/api-docs/repositoryenvironmentdeploymentpolicy/.

It seems it only supports the branchPattern option, not the tagPattern option.


What we want to achieve:

image


If there is a way to do it now, or maybe add this feature -> would be great)

Thanks!

mjeffryes commented 2 weeks ago

Hi @av-andrii-ievtukhov this is a great suggestion, but the reason we don't have the tagPattern on this resource today is that the upstream terraform provider only has branchPattern (see github_repository_environment_deployment_policy | Terraform Registry).

If you file an issue against https://github.com/integrations/terraform-provider-github and get the support added there, we'll pick it up in our provider soon after it's released there.

maksym-lutskyi commented 2 weeks ago

Hi They actually have already opened issue for that. But unfortunately PR for that is still in open state. https://github.com/integrations/terraform-provider-github/pull/2165