Add automated commit / tag

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-03-29 14:32:21 +01:00
parent 72b8ad1eda
commit 9554ea4178
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 17 additions and 2 deletions

View file

@ -20,11 +20,14 @@ official-tests: build
test: hadolint official-tests 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 \ docker run --rm -i \
-v "$(CURDIR):$(CURDIR)" \ -v "$(CURDIR):$(CURDIR)" \
-w "$(CURDIR)" \ -w "$(CURDIR)" \
python:3-alpine \ python:3-alpine \
sh -c "pip install -r patcher/requirements.txt && python3 patcher/index.py" sh -c "pip install -r patcher/requirements.txt && python3 patcher/index.py"
tag:
bash ./patcher/tag.sh

12
patcher/tag.sh Normal file
View 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}"