2022-11-08 16:36:16 +01:00
|
|
|
tag = "$$(git describe --tags)"
|
|
|
|
|
2022-11-02 10:25:43 +01:00
|
|
|
build:
|
|
|
|
$(MAKE) -C backend build
|
|
|
|
docker build -t dashboard .
|
2022-11-08 16:36:16 +01:00
|
|
|
docker tag dashboard yksflip/dashboard:$(tag)
|
|
|
|
docker push yksflip/dashboard:$(tag)
|
2022-11-02 10:25:43 +01:00
|
|
|
|
|
|
|
rm:
|
|
|
|
docker stack rm ${STACK_NAME}
|
|
|
|
|
|
|
|
deploy: rm
|
|
|
|
DOMAIN=${DOMAIN} docker stack deploy --resolve-image always --compose-file compose.yml ${STACK_NAME}
|
|
|
|
|
|
|
|
update:
|
|
|
|
docker pull yksflip/dashboard:latest
|
|
|
|
docker service update dashboard_app --image yksflip/dashboard:latest --force
|
|
|
|
|
|
|
|
exec:
|
|
|
|
docker exec -it $$(docker ps --format "{{ .Names }}" | grep dashboard) bash
|