bugfix makefile when branch contains / char
This commit is contained in:
parent
69857af966
commit
d16adbbfdb
5
Makefile
5
Makefile
|
@ -38,7 +38,10 @@ devicehub_image := ${project}/devicehub:${devicehub_tag}
|
||||||
# idhub image tag
|
# idhub image tag
|
||||||
####
|
####
|
||||||
|
|
||||||
idhub_branch := `git -C IdHub branch --show-current`
|
# src https://stackoverflow.com/questions/33479645/substitute-character-in-makefile-variable-after-evaluation
|
||||||
|
idhub_branch_raw := $(shell git -C IdHub branch --show-current)
|
||||||
|
idhub_branch := $(subst /,-,$(idhub_branch_raw))
|
||||||
|
|
||||||
idhub_commit := `git -C IdHub log -1 --format=%h`
|
idhub_commit := `git -C IdHub log -1 --format=%h`
|
||||||
idhub_tag := ${idhub_branch}__${idhub_commit}
|
idhub_tag := ${idhub_branch}__${idhub_commit}
|
||||||
idhub_tag := latest
|
idhub_tag := latest
|
||||||
|
|
Reference in New Issue