Initial deploy
This commit is contained in:
@@ -27,6 +27,7 @@ HOST_CLIENT := $(BUILD)/$(HOSTOS)-$(HOSTARCH)/keeporg
|
||||
HOST_SERVER := $(BUILD)/$(HOSTOS)-$(HOSTARCH)/keeporgd
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
APP_NAME := keeporg
|
||||
|
||||
# ---------------------------------------------------------------- developing
|
||||
|
||||
@@ -230,3 +231,21 @@ run-server: $(HOST_SERVER) ## run a server on 127.0.0.1:8765 with data in ./.dev
|
||||
.PHONY: run-client
|
||||
run-client: $(HOST_CLIENT) ## run the sync agent with the local configuration
|
||||
$(HOST_CLIENT) run
|
||||
|
||||
nginx:
|
||||
cat config/variables/main.json | tpl -f config/nginx/$(APP_NAME).conf.tmpl > /etc/nginx/sites-available/$(APP_NAME).conf
|
||||
ln -sf /etc/nginx/sites-available/$(APP_NAME).conf /etc/nginx/sites-enabled/$(APP_NAME).conf
|
||||
nginx -t
|
||||
systemctl restart nginx
|
||||
|
||||
build-server: nginx
|
||||
podman build \
|
||||
--build-arg APP_VERSION=${VERSION} \
|
||||
--platform=linux/arm64 \
|
||||
-t repo.rcmd.space/$(APP_NAME):$(VERSION) \
|
||||
.
|
||||
podman push repo.rcmd.space/$(APP_NAME):$(VERSION)
|
||||
podman image prune -f
|
||||
|
||||
deploy-server:
|
||||
helm upgrade --install --namespace "apps" --create-namespace $(APP_NAME) rcmd/rcmd-base -f ./config/variables/server.values.yaml --set "image.version=$(VERSION)"
|
||||
|
||||
Reference in New Issue
Block a user