https://pulumi.com logo
#general
Title
# general
h

high-morning-17948

04/20/2020, 1:07 AM
How can I specify in
.pulumi/ci.json
to use production stack on release tag instead of master branch for Github Actions?
g

gentle-diamond-70147

04/20/2020, 4:18 PM
Hey @high-morning-17948, can you elaborate a bit? I'm not following.
h

high-morning-17948

04/20/2020, 4:23 PM
I followed this documentation for creating the deployment pipeline with pulumi and github actions: https://www.pulumi.com/docs/guides/continuous-delivery/github-actions/#branch-mappings It works great when having develop branch for the development pulumi stack and the master branch for the pulumi production stack. I want to have the master branch for the development stack and use the release tag in github for the production stack. I can specify that in the github actions workflows, but couldn't find any documentation in pulumi for the ci.json with releases tag that the pulumi/actions docker uses for creating the stack based on the branch name.
@gentle-diamond-70147
g

gentle-diamond-70147

04/20/2020, 4:31 PM
Ah, no, looks like we don't support tags in the
ci.json
mapping.
You can specify
PULUMI_STACK
in your GH Action workflow file though. So you could manually map them that way.
h

high-morning-17948

04/20/2020, 4:42 PM
Thanks for the response. I'll take a look at it and find a way to add it.