Publish builds over HTTP (/build/upload + /build/publish)
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2026-08-05 20:31:44 +02:00
parent 985f8e03ce
commit 35297e7ea9
2 changed files with 10 additions and 11 deletions
+4 -7
View File
@@ -24,14 +24,11 @@ steps:
- name: artifact - name: artifact
image: alpine image: alpine
environment: environment:
DROPAREA_HOST: vps.teletype.hu UPDATE_SERVER: https://teletypegames.org
DROPAREA_PORT: 2223 UPDATE_SECRET:
DROPAREA_TARGET_PATH: /home/drop from_secret: update_secret_key
DROPAREA_USER: drop
DROPAREA_SSH_PASSWORD:
from_secret: droparea_ssh_password
commands: commands:
- apk add --no-cache make openssh-client sshpass - apk add --no-cache make curl
- make ci-upload - make ci-upload
- name: update - name: update
+6 -4
View File
@@ -107,12 +107,14 @@ ci-upload:
META_DST="$(PROJECT)-$$VERSION.metadata.json"; \ META_DST="$(PROJECT)-$$VERSION.metadata.json"; \
BINS=$$(ls $(PROJECT)-$$VERSION-*.zip 2>/dev/null || true); \ BINS=$$(ls $(PROJECT)-$$VERSION-*.zip 2>/dev/null || true); \
cp $$META_SRC $$META_DST; \ cp $$META_SRC $$META_DST; \
sshpass -p "$(DROPAREA_SSH_PASSWORD)" scp -o StrictHostKeyChecking=no -P $(DROPAREA_PORT) \ for f in $$FILE $$META_DST $$BINS; do \
$$FILE $$META_DST $$BINS \ curl -fsS -H "X-Update-Secret: $(UPDATE_SECRET)" \
$(DROPAREA_USER)@$(DROPAREA_HOST):$(DROPAREA_TARGET_PATH)/ -F "file=@$$f" \
"$(UPDATE_SERVER)/build/upload?name=$(PROJECT)&version=$$VERSION" || exit 1; \
done
ci-update: ci-update:
@VERSION=$$(cat $(VERSION_FILE)); \ @VERSION=$$(cat $(VERSION_FILE)); \
curl "$(UPDATE_SERVER)/update?secret=$(UPDATE_SECRET)&name=$(PROJECT)&platform=ebitengine&version=$$VERSION" curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=ebitengine&version=$$VERSION"
.PHONY: all build wasm export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-build ci-version ci-export ci-binaries ci-upload ci-update .PHONY: all build wasm export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-build ci-version ci-export ci-binaries ci-upload ci-update