14 lines
360 B
Makefile
14 lines
360 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 -f .deploy_key
|
||
|
ssh-copy-id -i .deploy_key.pub ubuntu@beta.fogtype.com
|
||
|
ssh-keyscan -t ed25519 -H beta.fogtype.com
|