13 lines
410 B
Makefile
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
|