mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-11-08 20:10:01 +00:00
Add automated commit / tag
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
72b8ad1eda
commit
9554ea4178
2 changed files with 17 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -20,11 +20,14 @@ official-tests: build
|
|||
|
||||
test: hadolint official-tests
|
||||
|
||||
update: teamspeaki_version_update test
|
||||
update: teamspeak_version_update test tag
|
||||
|
||||
teamspeaki_version_update:
|
||||
teamspeak_version_update:
|
||||
docker run --rm -i \
|
||||
-v "$(CURDIR):$(CURDIR)" \
|
||||
-w "$(CURDIR)" \
|
||||
python:3-alpine \
|
||||
sh -c "pip install -r patcher/requirements.txt && python3 patcher/index.py"
|
||||
|
||||
tag:
|
||||
bash ./patcher/tag.sh
|
||||
|
|
12
patcher/tag.sh
Normal file
12
patcher/tag.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
ver=$(grep -Eo 'TEAMSPEAK_VERSION=([0-9.]+)' Dockerfile | cut -d '=' -f 2)
|
||||
|
||||
[ -n "${ver}" ] || {
|
||||
echo "No version found"
|
||||
exit 1
|
||||
}
|
||||
|
||||
git commit -m "Teamspeak Server ${ver}" Dockerfile
|
||||
git tag "${ver}"
|
Loading…
Reference in a new issue