use tags in makefile
This commit is contained in:
parent
3ba032153e
commit
b1697d58b2
2 changed files with 8 additions and 4 deletions
7
Makefile
7
Makefile
|
@ -1,9 +1,10 @@
|
||||||
|
tag = "$$(git describe --tags)"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
$(MAKE) -C backend build
|
$(MAKE) -C backend build
|
||||||
docker push yksflip/dashboard-backend:latest
|
|
||||||
docker build -t dashboard .
|
docker build -t dashboard .
|
||||||
docker tag dashboard yksflip/dashboard:latest
|
docker tag dashboard yksflip/dashboard:$(tag)
|
||||||
docker push yksflip/dashboard:latest
|
docker push yksflip/dashboard:$(tag)
|
||||||
|
|
||||||
rm:
|
rm:
|
||||||
docker stack rm ${STACK_NAME}
|
docker stack rm ${STACK_NAME}
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
|
tag = "$$(git describe --tags)"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t dashboard-backend .
|
docker build -t dashboard-backend .
|
||||||
docker tag dashboard-backend yksflip/dashboard-backend:latest
|
docker tag dashboard-backend yksflip/dashboard-backend:$(tag)
|
||||||
|
docker push yksflip/dashboard-backend:$(tag)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm database.db
|
rm database.db
|
||||||
|
|
Loading…
Reference in a new issue