Closed zhenik closed 4 years ago
Invalid reference format if we use the branch name
~/Makefile
branch = $(shell git rev-parse --abbrev-ref HEAD) build: custom_ca docker build . -t local/hive:$(branch) docker tag local/hive:$(branch) local/hive:latest
~/src/github.com/zhenik/docker-hive make build docker build . -t local/hive:feature/refactor-to-r.0.2.2 invalid argument "local/hive:feature/refactor-to-r.0.2.2" for "-t, --tag" flag: invalid reference format See 'docker build --help'. make: *** [build] Error 125
I would suggest using last commit's hash
last commit's hash
branch = $(shell git rev-parse --verify HEAD)
Ok with me.
Problem description
Invalid reference format if we use the branch name
~/Makefile
Log
Suggestion
I would suggest using
last commit's hash
~/Makefile