busy-lawyer-33856
05/11/2023, 11:21 AMcloudbuild.yaml
file.
I have tried to follow the guide her: https://www.pulumi.com/docs/guides/continuous-delivery/google-cloud-build/
#!/bin/bash
# Download and install required tools.
# pulumi
curl -L <https://get.pulumi.com/> | bash
export PATH=$PATH:$HOME/.pulumi/bin
#Login to starlab project
pulumi login <gs://folder>
#Choose stack
pulumi stack select <stack-name>
#update pulumi
pulumi preview
pulumi login
works properly, however it cannot see the stack in the repo.
It just throws the error:
error: no stack named 'starlab-iac' found
Another problem I have, is that I dont understand how to set my PULUMI_CONFIG_PASSPHRASE
such that it is possible to run pulumi commands in cloudbuild.yaml
such as pulumi up
.
Any help with my problem would be greatly appreciated.
Best Regards
Eliassteep-lock-88842
05/11/2023, 2:51 PMpulumi stack
commands won’t work.
2. can you set your PULUMI_CONFIG_PASSPHRASE
as an environment variable in Github and then pass it to cloudbuild as an env
?busy-lawyer-33856
05/15/2023, 11:10 AMls -la
before pulumi stack select <stack-name>
, and the Pulumi.<stack-name>.yaml
is present.
I have also tried the command pulumi stack ls
and the command works however no stacks are listed. Just the name line: NAME LAST UPDATE RESOURCE COUNT
I will look into add env vars from Github to Cloudbuild