2020-06-05 20:25:57 +00:00
|
|
|
CLOUDRON_APP ?= drone
|
|
|
|
CLOUDRON_ID := $(shell jq -r .id CloudronManifest.json)
|
2020-10-16 21:50:57 +00:00
|
|
|
CLOUDRON_SERVER ?= my.9wd.eu
|
|
|
|
CLOUDRON_TOKEN ?=123
|
2020-06-05 20:25:57 +00:00
|
|
|
DOCKER_REPO ?= fbartels
|
|
|
|
|
|
|
|
.PHONY: default
|
|
|
|
default: build update
|
|
|
|
|
|
|
|
.PHONY: init
|
|
|
|
init:
|
|
|
|
cloudron init
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
|
|
|
cloudron build --set-repository $(DOCKER_REPO)/$(CLOUDRON_ID)
|
|
|
|
|
|
|
|
.PHONY: update
|
|
|
|
update: build
|
2021-11-20 11:55:14 +00:00
|
|
|
cloudron update --server ${CLOUDRON_SERVER} --app ${CLOUDRON_APP}
|
2020-06-05 20:25:57 +00:00
|
|
|
|
2020-10-16 21:50:57 +00:00
|
|
|
.PHONY: update-ci
|
|
|
|
update-ci:
|
|
|
|
cloudron update --server ${CLOUDRON_SERVER} --token ${CLOUDRON_TOKEN} --app ${CLOUDRON_APP}
|
|
|
|
|
2020-06-05 20:25:57 +00:00
|
|
|
.PHONY: install
|
|
|
|
install: build
|
|
|
|
cloudron install --location ${CLOUDRON_APP}
|
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
|
|
|
cloudron uninstall --app ${CLOUDRON_APP}
|
|
|
|
|
|
|
|
.PHONY: install-debug
|
|
|
|
install-debug:
|
|
|
|
cloudron install --location ${CLOUDRON_APP} --debug
|
|
|
|
|
|
|
|
.PHONY: exec
|
|
|
|
exec:
|
|
|
|
cloudron exec --app ${CLOUDRON_APP}
|
|
|
|
|
|
|
|
.PHONY: logs
|
|
|
|
logs:
|
|
|
|
cloudron logs -f --app ${CLOUDRON_APP}
|