6 to 7 upgrade: can no longer use inventory() #3250
Unanswered
awtg-elmer
asked this question in
Help needed
Replies: 1 comment
-
I think you need top-level hosts, something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently working on a WordPress project that still uses v6 and now failing the build.
It can accommodate multistage[dev, test, main] branches previously.
At the moment, our project still uses inventory( ). I found upgrade documentation but I am not sure if in step.7 if it's the sample "deploy.yaml".
If so, how do we configure it for multi-environment?
Below is the current deploy.yaml that's being called in deploy.php by inventory( 'deploy.yml' );
deploy.yml
`.base: &base
hostname: hostname
user: deployer
application: appname
repository: [email protected]:org/repo.git
deploy_path: /var/www/html/
branch: main
dev:
<<: *base
hostname: xx.xx.xx.x
stage: dev
branch: dev
test:
<<: *base
hostname: xx.xx.xx.x
stage: test
branch: test
main:
<<: *base
hostname: xx.xx.xx.x
stage: main
branch: main`
Beta Was this translation helpful? Give feedback.
All reactions