mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-24 21:03:05 +00:00
Fix missing alpine tag during buildx bake (#4043)
The bake recipt was missing the single `:alpine` tag for the alpine builds when we were releasing a `stable/latest` version of Vaultwarden. This PR fixes this by checking for those conditions and add the `:alpine` tag too. We will keep the `:latest-alpine` also, which i find even nicer then just `:alpine` Fixes #4035
This commit is contained in:
parent
cec1e87679
commit
efc6eb0073
1 changed files with 7 additions and 1 deletions
|
@ -216,7 +216,13 @@ function "generate_tags" {
|
||||||
result = flatten([
|
result = flatten([
|
||||||
for registry in get_container_registries() :
|
for registry in get_container_registries() :
|
||||||
[for base_tag in get_base_tags() :
|
[for base_tag in get_base_tags() :
|
||||||
concat(["${registry}:${base_tag}${suffix}${platform}"])]
|
concat(
|
||||||
|
# If the base_tag contains latest, and the suffix contains `-alpine` add a `:alpine` tag too
|
||||||
|
base_tag == "latest" ? suffix == "-alpine" ? ["${registry}:alpine${platform}"] : [] : [],
|
||||||
|
# The default tagging strategy
|
||||||
|
["${registry}:${base_tag}${suffix}${platform}"]
|
||||||
|
)
|
||||||
|
]
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue