mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
Rewrite makefile for deploy-static to work from my arm macbook. The docker compose rm is needed because hishtory-static has a volume that was getting reused
This commit is contained in:
parent
3d3260db37
commit
f9da1bf8b6
6
Makefile
6
Makefile
@ -22,15 +22,15 @@ release:
|
||||
git push && git push --tags
|
||||
|
||||
build-static:
|
||||
docker build -t gcr.io/dworken-k8s/hishtory-static -f backend/web/caddy/Dockerfile .
|
||||
ssh server "cd ~/code/hishtory/; git pull; docker build -t gcr.io/dworken-k8s/hishtory-static -f backend/web/caddy/Dockerfile ."
|
||||
|
||||
build-api:
|
||||
rm hishtory server || true
|
||||
docker build -t gcr.io/dworken-k8s/hishtory-api -f backend/server/Dockerfile .
|
||||
|
||||
deploy-static: build-static
|
||||
docker push gcr.io/dworken-k8s/hishtory-static
|
||||
ssh monoserver "cd ~/infra/ && docker compose pull hishtory-static && docker compose up -d --no-deps hishtory-static"
|
||||
ssh server "docker push gcr.io/dworken-k8s/hishtory-static"
|
||||
ssh monoserver "cd ~/infra/ && docker compose pull hishtory-static && docker compose rm -svf hishtory-static && docker compose up -d hishtory-static"
|
||||
|
||||
deploy-api: build-api
|
||||
docker push gcr.io/dworken-k8s/hishtory-api
|
||||
|
Loading…
Reference in New Issue
Block a user