Skip to content

Commit 671aafa

Browse files
committed
bump version v2.0.6
Signed-off-by: JF Ding <jfding@gmail.com>
1 parent 633769f commit 671aafa

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.5
1+
2.0.6

deployment/docker-compose/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
services:
44
loader:
55
restart: always
6-
image: rushiai/auto-reloader:v2.0.5
6+
image: rushiai/auto-reloader:v2.0.6
77
volumes:
88
- /var/run/docker.sock:/var/run/docker.sock
99
- /usr/bin/docker:/usr/bin/docker

scripts/set-version.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
#!/usr/bin/env bash
22
# Set project version everywhere. Usage: ./scripts/set-version.sh 1.2.3
3-
# Updates: VERSION, supervisor/Cargo.toml, gh-webhook/pyproject.toml
3+
# Updates: VERSION, supervisor/Cargo.toml, deployment/docker-compose/compose.yml
44
set -e
55
if [[ -z "${1:-}" ]]; then
66
echo "Usage: $0 <version>" >&2
77
echo "Example: $0 1.2.3" >&2
88
exit 1
99
fi
1010
v=$1
11+
12+
if [[ ! "$v" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
13+
echo "Version format is invalid: $v, must be in the format of x.y.z (e.g. 1.2.3)" >&2
14+
exit 1
15+
fi
16+
1117
root=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")/.." && pwd)
1218
echo "$v" > "$root/VERSION"
1319
sed -i.bak -E "s/^version = \".+\"/version = \"$v\"/" "$root/supervisor/Cargo.toml" && rm -f "$root/supervisor/Cargo.toml.bak"
14-
sed -i.bak -E "s/^version = \".+\"/version = \"$v\"/" "$root/gh-webhook/pyproject.toml" && rm -f "$root/gh-webhook/pyproject.toml.bak"
1520
# Update version in deployment/docker-compose/compose.yml (image tag)
1621
compose_yml="$root/deployment/docker-compose/compose.yml"
1722
if [[ -f "$compose_yml" ]]; then
@@ -20,4 +25,4 @@ else
2025
echo "Warning: $compose_yml not found, skipping docker-compose version update" >&2
2126
fi
2227

23-
echo "Version set to $v in VERSION, supervisor/Cargo.toml, gh-webhook/pyproject.toml, and reference (docker)compose.yml"
28+
echo "Version set to $v in VERSION, supervisor/Cargo.toml, and reference (docker)compose.yml"

supervisor/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

supervisor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git-supervisor"
3-
version = "2.0.5"
3+
version = "2.0.6"
44
edition = "2021"
55
authors = ["JF Ding <jfding@gmail.com>"]
66
description = "Central supervisor to control remote hosts and git repos for deployment"

0 commit comments

Comments
 (0)