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:
David Dworken 2023-02-28 21:22:35 -08:00
parent 3d3260db37
commit f9da1bf8b6
No known key found for this signature in database

View File

@ -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