mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-03 06:55:44 +00:00
ci: retire legacy healthchat.ch desktop feed
This commit is contained in:
@@ -40,7 +40,7 @@ jobs:
|
||||
deploy:
|
||||
name: Publish update feed to packages.healthchat.ch
|
||||
runs-on: ubuntu-latest
|
||||
# Fetches ~2 GiB from the archive and uploads it twice (canonical + legacy path).
|
||||
# Fetches ~2 GiB from the archive and uploads it to the live feed.
|
||||
timeout-minutes: 60
|
||||
steps:
|
||||
- name: Resolve version
|
||||
@@ -135,14 +135,6 @@ jobs:
|
||||
# *.nupkg are preserved (Squirrel.Windows delta history) and only the staged files
|
||||
# are written/overwritten. If the host's FTPS cert is untrusted, set
|
||||
# ssl:verify-certificate to no.
|
||||
#
|
||||
# Dual-publish during the URL migration: /public_html/packages is the docroot of
|
||||
# packages.healthchat.ch (the canonical feed URL since builds > 1.5.0), while
|
||||
# /public_html/healthchat.ch/packages/desktop serves the legacy
|
||||
# healthchat.ch/packages/desktop URL that clients built <= 1.5.0 still poll —
|
||||
# they only learn the new URL by installing an update delivered over the old
|
||||
# feed. Drop the legacy mirror (and its verify checks below) once the installed
|
||||
# base is on a build carrying the new update_base_url.
|
||||
lftp -u "$FTP_USERNAME" --env-password "$FTP_SERVER" <<LFTP
|
||||
set cmd:fail-exit true
|
||||
set ftp:ssl-force true
|
||||
@@ -150,8 +142,6 @@ jobs:
|
||||
set ssl:verify-certificate true
|
||||
mkdir -pf /public_html/packages/desktop
|
||||
mirror -R $MIRROR_OPTS feed/ /public_html/packages/desktop/
|
||||
mkdir -pf /public_html/healthchat.ch/packages/desktop
|
||||
mirror -R $MIRROR_OPTS feed/ /public_html/healthchat.ch/packages/desktop/
|
||||
bye
|
||||
LFTP
|
||||
|
||||
@@ -160,18 +150,12 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
base="https://packages.healthchat.ch/desktop"
|
||||
# The legacy healthchat.ch URLs keep clients built <= 1.5.0 updating; drop them
|
||||
# together with the legacy mirror above once the installed base has migrated.
|
||||
legacy="https://healthchat.ch/packages/desktop"
|
||||
fail=0
|
||||
for url in "$base/update/macos/releases.json" \
|
||||
"$base/update/win32/x64/RELEASES" \
|
||||
"$base/update/win32/arm64/RELEASES" \
|
||||
"$base/install/macos/HealthChat.dmg" \
|
||||
"$base/install/win32/x64/HealthChat-Setup.exe" \
|
||||
"$legacy/update/macos/releases.json" \
|
||||
"$legacy/update/win32/x64/RELEASES" \
|
||||
"$legacy/update/win32/arm64/RELEASES"; do
|
||||
"$base/install/win32/x64/HealthChat-Setup.exe"; do
|
||||
code=$(curl -fsS -o /dev/null -w '%{http_code}' -I "$url" 2>/dev/null || echo "000")
|
||||
if [[ "$code" == "200" ]]; then echo "ok $code $url"; else echo "FAIL $code $url"; fail=1; fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user