search for docker-compose.yml instead of *.yaml,*.yml

since we place configs (which could be yaml) in the lubidock
repository it can cause errors while mistakenly parsing service
configs instead of only parsing compose files
master
lub 5 years ago
parent c0e8c99380
commit 1a6fbd9d96

@ -110,7 +110,7 @@ Add-IptablesRule -Chain 'OUTPUT' -Rule $chain_rule
$ingress_address = Get-DockerIngressAddress $ingress_address = Get-DockerIngressAddress
foreach($yaml in (Get-ChildItem -Path $Stacks -Include '*.yml','*.yaml' -Recurse)) { foreach($yaml in (Get-ChildItem -Path $Stacks -Include 'docker-compose.yml' -Recurse)) {
Write-Output ('Processing {0}' -f $yaml) Write-Output ('Processing {0}' -f $yaml)
$definition = Get-Content -Path $yaml -Raw | ConvertFrom-Yaml $definition = Get-Content -Path $yaml -Raw | ConvertFrom-Yaml

Loading…
Cancel
Save