mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-09 23:00:56 +00:00
Parse and set short tags from git tag in bake file
This commit is contained in:
parent
bfbf19058b
commit
47f216af83
4
TODO.md
4
TODO.md
@ -2,5 +2,5 @@
|
|||||||
- [ ] Test with helm chart
|
- [ ] Test with helm chart
|
||||||
- [x] Play With Docker generation
|
- [x] Play With Docker generation
|
||||||
- [x] Custom app compose and dockerfile examples
|
- [x] Custom app compose and dockerfile examples
|
||||||
- [ ] Add v13 v12 tags
|
- [x] Add v13 v12 tags
|
||||||
- [ ] Use &\* feature of yaml to describe backends
|
- [x] Use &\* feature of yaml to describe backends
|
||||||
|
@ -43,8 +43,12 @@ group "default" {
|
|||||||
|
|
||||||
function "tag" {
|
function "tag" {
|
||||||
params = [repo, version]
|
params = [repo, version]
|
||||||
# If `version` parameter is develop (development build) then use tag `latest`
|
result = [
|
||||||
result = ["${version}" == "develop" ? "${USERNAME}/${repo}:latest" : "${USERNAME}/${repo}:${version}"]
|
# If `version` param is develop (development build) then use tag `latest`
|
||||||
|
"${version}" == "develop" ? "${USERNAME}/${repo}:latest" : "${USERNAME}/${repo}:${version}",
|
||||||
|
# Make short tag for major version if possible. For example, from v13.16.0 make v13.
|
||||||
|
can(regex("(v[0-9]+)[.]", "${version}")) ? "${USERNAME}/${repo}:${regex("(v[0-9]+)[.]", "${version}")[0]}" : "",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "default-args" {
|
target "default-args" {
|
||||||
|
Loading…
Reference in New Issue
Block a user