Initial deploy
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/deploy unknown status

This commit is contained in:
Reactorcoremeltdown
2026-10-30 10:01:11 +01:00
parent 9c459909c3
commit da503eac2a
6 changed files with 193 additions and 0 deletions
+19
View File
@@ -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)"