use tags in makefile

This commit is contained in:
Philipp Rothmann 2022-11-02 11:54:24 +01:00
parent d8f7fa36e1
commit 6607c8a168
2 changed files with 8 additions and 4 deletions

View file

@ -1,9 +1,10 @@
tag = "$$(git describe --tags)"
build:
$(MAKE) -C backend build
docker push yksflip/dashboard-backend:latest
docker build -t dashboard .
docker tag dashboard yksflip/dashboard:latest
docker push yksflip/dashboard:latest
docker tag dashboard yksflip/dashboard:$(tag)
docker push yksflip/dashboard:$(tag)
rm:
docker stack rm ${STACK_NAME}

View file

@ -1,6 +1,9 @@
tag = "$$(git describe --tags)"
build:
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:
rm database.db