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

This commit is contained in:
2026-08-05 20:32:02 +02:00
parent e7389cb144
commit 5bb8794405
3 changed files with 12 additions and 13 deletions
+4 -7
View File
@@ -14,14 +14,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
@@ -129,12 +129,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=godot&version=$$VERSION" curl -fsS -X POST -H "X-Update-Secret: $(UPDATE_SECRET)" "$(UPDATE_SERVER)/build/publish?name=$(PROJECT)&platform=godot&version=$$VERSION"
.PHONY: all build run web export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-mac-universal binary-build binary-build-mac ci-version ci-export ci-binaries ci-upload ci-update .PHONY: all build run web export watch clean binaries binary-win-x86 binary-win-x64 binary-linux-x64 binary-mac-universal binary-build binary-build-mac ci-version ci-export ci-binaries ci-upload ci-update
+2 -2
View File
@@ -36,8 +36,8 @@ VS Code tasks.
## CI/CD ## CI/CD
Woodpecker builds every push (`.woodpecker.yaml`): version → headless Woodpecker builds every push (`.woodpecker.yaml`): version → headless
web export (`barichello/godot-ci` image) → upload to the droparea web export (`barichello/godot-ci` image) → upload via `/build/upload`
`/update?platform=godot` on teletypegames.org. The version comes from `/build/publish?platform=godot` on teletypegames.org. The version comes from
`metadata.json` (non-main branches get a `dev-` prefix). Keep the `metadata.json` (non-main branches get a `dev-` prefix). Keep the
`barichello/godot-ci` image tag in sync with the Godot version the `barichello/godot-ci` image tag in sync with the Godot version the
project is edited with. project is edited with.