From 0f80dbd956a39266ed43e5ead2a29d75b0b06296 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Tue, 31 Oct 2023 15:05:07 +0000 Subject: [PATCH] Chore: Release 1.9.0 --- README.md | 12 ++++++++++-- docker-compose.example.yml | 8 ++++---- sql/install.sql | 4 ++-- web/updater/82.php | 14 ++++++++++++++ 4 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 web/updater/82.php diff --git a/README.md b/README.md index 8a61c32c..45829702 100644 --- a/README.md +++ b/README.md @@ -42,14 +42,14 @@ a PHP frontend. `web` image (See [./web/config.php](./web/config.php) for supported environment variables): ```sh -docker run --rm -it -e DB_ADDR=db -e DB_NAME=hlstatsxce -e DB_USER=hlstatsxce -e DB_PASS=hlstatsxce -p 80:80 startersclan/hlstatsx-community-edition:1.8.0-web +docker run --rm -it -e DB_ADDR=db -e DB_NAME=hlstatsxce -e DB_USER=hlstatsxce -e DB_PASS=hlstatsxce -p 80:80 startersclan/hlstatsx-community-edition:1.9.0-web ``` `daemon` image: ```sh # Use --help for usage -docker run --rm -it -p 27500:27500/udp startersclan/hlstatsx-community-edition:1.8.0-daemon --db-host=db:3306 --db-name=hlstatsxce --db-username=hlstatsxce --db-password=hlstatsxce #--help +docker run --rm -it -p 27500:27500/udp startersclan/hlstatsx-community-edition:1.9.0-daemon --db-host=db:3306 --db-name=hlstatsxce --db-username=hlstatsxce --db-password=hlstatsxce #--help ``` To deploy using Docker Compose: @@ -157,6 +157,14 @@ docker volume rm hlstatsx-community-edition-dns-volume docker volume rm hlstatsx-community-edition-db-volume ``` +## Release + +```sh +./scripts/release.sh "1.2.3" +git add . +git commit -m "Chore: Release 1.2.3" +``` + ## FAQ ### Q: `Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9000 (through xdebug.client_host/xdebug.client_port)` appears in the php logs diff --git a/docker-compose.example.yml b/docker-compose.example.yml index d27644c2..c3c6c346 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -56,7 +56,7 @@ services: # 3. HLStatsX:CE perl daemon accepts the gameserver logs. Gameserver Logs are parsed and stats are recorded # The daemon's proxy_key secret can only be setup in the HLStatsX:CE Web Admin Panel Settings under 'Proxy Settings' section daemon: - image: startersclan/hlstatsx-community-edition:1.8.0-daemon + image: startersclan/hlstatsx-community-edition:1.9.0-daemon ports: - 27500:27500/udp # For external servers to send logs to the daemon networks: @@ -75,7 +75,7 @@ services: # Cron - awards awards: - image: startersclan/hlstatsx-community-edition:1.8.0-daemon + image: startersclan/hlstatsx-community-edition:1.9.0-daemon stop_signal: SIGKILL entrypoint: - /bin/sh @@ -122,7 +122,7 @@ services: # Available at http://localhost:8081, or https://web.example.com # Admin Panel username: admin, password: 123456 web: - image: startersclan/hlstatsx-community-edition:1.8.0-web + image: startersclan/hlstatsx-community-edition:1.9.0-web labels: - "traefik.enable=true" - "traefik.docker.network=hlstatsx-community-edition_traefik-network" @@ -156,7 +156,7 @@ services: # Cron - Heatmaps heatmaps: - image: startersclan/hlstatsx-community-edition:1.8.0-web + image: startersclan/hlstatsx-community-edition:1.9.0-web volumes: - games-volume:/web/hlstatsimg/games # Stateful games volume, which also contains heatmaps environment: diff --git a/sql/install.sql b/sql/install.sql index f6ecccff..49d7f2e2 100644 --- a/sql/install.sql +++ b/sql/install.sql @@ -2,8 +2,8 @@ -- This file is only needed for new installations. -SET @DBVERSION="81"; -SET @VERSION="1.8.0"; +SET @DBVERSION="82"; +SET @VERSION="1.9.0"; -- -------------------------------------------------------- diff --git a/web/updater/82.php b/web/updater/82.php new file mode 100644 index 00000000..5f7f85e2 --- /dev/null +++ b/web/updater/82.php @@ -0,0 +1,14 @@ +"; + $db->query("UPDATE hlstats_Options SET `value` = '$version' WHERE `keyname` = 'version'"); + $db->query("UPDATE hlstats_Options SET `value` = '$dbversion' WHERE `keyname` = 'dbversion'"); +?>