beta.fogtype.com/Makefile
Kohei Watanabe ff5fe33d8e
All checks were successful
deploy / main (push) Successful in 13s
set comment
2024-01-03 22:21:32 +09:00

13 lines
410 B
Makefile

.PHONY: setup
setup:
docker context create --docker=host=ssh://ubuntu@beta.fogtype.com beta
.PHONY: deploy
deploy: export DOCKER_CONTEXT := beta
deploy:
docker compose up --detach --remove-orphans --build
.deploy_key:
ssh-keygen -t ed25519 -C git@git.fogtype.com:nebel/beta.fogtype.com.git -f .deploy_key
ssh-copy-id -i .deploy_key.pub ubuntu@beta.fogtype.com
ssh-keyscan -t ed25519 -H beta.fogtype.com