This message was deleted.
# general
s
This message was deleted.
a
Your
Pulumi.yaml
is in the repo root?
w
no, in
infra
I have my source code in
/server
and pulumi infra in
/infra
a
I see. I don't have an answer for that, sorry. If
Pulumi.yaml
were placed in root, it supports a config value to specify a different location for the code.
w
oh!
I can move one config file, no probs
a
❤️ 1
w
on it
does it mean that I should move all files named
Pulumi.*.yaml
to root?
a
For stack files you can configure via
config
.
I normally put my stack files in a
./.pulumi
dir in the root, to avoid clutter.
w
I'm unclear if the main property affects the config property.
If I want it inside
infra/
, do I need to add anything? Or is setting the main property enough?
a
I don't think it will affect it, so you'll have to move the YAML files for stack configuration.
w
ah
or set config and main to the same
a
Yup, exactly.
w
Seems to have done the trick! But now it's complaining about
pulumi:pulumi:Stack frea-api-dev error: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
. I can recreate it locally if I remove the node_modules directory, so seems like something is missing from the example in Pulumi docs: https://www.pulumi.com/docs/guides/continuous-delivery/github-actions/
or if it's related to my subdirectory solution
a
I don't have experience with GitLab actions, so no clue about that. You need to run
npm install
or
npm ci
somewhere, though, but I'm sure you have that already.
w
omg, there was more in the docs... embarassing to have missed it!
a
Ha! You're all good now 🙂
👍 1
w
It worked! 🎉 Thanks for helping out 😄
🎉 1
101 Views