mirror of
https://github.com/fbartels/cloudron-drone-app.git
synced 2024-11-23 05:41:00 +00:00
bfb81c786e
Signed-off-by: Felix Bartels <felix@9wd.eu>
44 lines
888 B
Makefile
44 lines
888 B
Makefile
CLOUDRON_APP ?= drone
|
|
CLOUDRON_ID := $(shell jq -r .id CloudronManifest.json)
|
|
CLOUDRON_SERVER ?= my.9wd.eu
|
|
CLOUDRON_TOKEN ?=123
|
|
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
|
|
cloudron update --server ${CLOUDRON_SERVER} --app ${CLOUDRON_APP}
|
|
|
|
.PHONY: update-ci
|
|
update-ci:
|
|
cloudron update --server ${CLOUDRON_SERVER} --token ${CLOUDRON_TOKEN} --app ${CLOUDRON_APP}
|
|
|
|
.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}
|