From 5738e73ee88d00202bd4c548dc264a877b92c2cc Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Wed, 30 Apr 2025 23:51:55 +0200 Subject: [PATCH] chore: automate version bump, tag, and push and add wget --- CloudronManifest.json | 2 +- Dockerfile.cloudron | 2 +- VERSION | 2 +- patch.sh | 9 +++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index c538412..2b9b295 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -4,7 +4,7 @@ "author": "Morgan", "description": "file://DESCRIPTION.md", "tagline": "A modern client-server application for the Soulseek file-sharing network.", - "version": "1.0.3", + "version": "1.0.6", "healthCheckPath": "/health", "httpPort": 5030, "addons": { diff --git a/Dockerfile.cloudron b/Dockerfile.cloudron index b787455..2d8a3c5 100644 --- a/Dockerfile.cloudron +++ b/Dockerfile.cloudron @@ -21,7 +21,7 @@ FROM debian:bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends \ tini gosu libstdc++6 \ - curl ca-certificates unzip jq rsync \ + wget curl ca-certificates unzip jq rsync \ && rm -rf /var/lib/apt/lists/* # Minimal filesystem layout diff --git a/VERSION b/VERSION index 90a27f9..af0b7dd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.5 +1.0.6 diff --git a/patch.sh b/patch.sh index ba5cca6..641e160 100755 --- a/patch.sh +++ b/patch.sh @@ -5,3 +5,12 @@ set -xeu ./bump_version.sh patch ./build.sh +# Met à jour la version dans CloudronManifest.json +jq --arg v "$(command cat VERSION)" '.version = $v' CloudronManifest.json > CloudronManifest.json.tmp && mv CloudronManifest.json.tmp CloudronManifest.json + +# Commit + tag + push +git add VERSION CloudronManifest.json +git commit -m "chore: bump version to v$(command cat VERSION)" +git tag "v$(command cat VERSION)" +git push --follow-tags +