mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
fix(docker-compose): remove empty anchors
This commit is contained in:
parent
7af6ec5d8a
commit
db76011b91
|
@ -44,11 +44,11 @@ services:
|
||||||
|
|
||||||
{% if "php" == language %}
|
{% if "php" == language %}
|
||||||
{% set anchors = [
|
{% set anchors = [
|
||||||
"apache" in php.version ? "*default-proxy" : "",
|
"apache" in php.version ? "*default-proxy" : null,
|
||||||
"*default-app",
|
"*default-app",
|
||||||
] -%}
|
] -%}
|
||||||
php:
|
php:
|
||||||
<<: [{{ anchors | join(", ") }}]
|
<<: [{{ anchors | filter(item => item is not null) | join(", ") }}]
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
target: build
|
target: build
|
||||||
|
|
Loading…
Reference in a new issue