mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-12-20 14:41:17 +00:00
Add auto-update trigger
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
003698662f
commit
2064298759
2 changed files with 22 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -20,7 +20,7 @@ official-tests: build
|
||||||
|
|
||||||
test: hadolint official-tests
|
test: hadolint official-tests
|
||||||
|
|
||||||
update: teamspeak_version_update test tag
|
update: teamspeak_version_update test
|
||||||
|
|
||||||
teamspeak_version_update:
|
teamspeak_version_update:
|
||||||
docker run --rm -i \
|
docker run --rm -i \
|
||||||
|
|
21
update-version.sh
Executable file
21
update-version.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
### ---- ###
|
||||||
|
|
||||||
|
echo "Switch back to master"
|
||||||
|
git checkout master
|
||||||
|
git reset --hard origin/master
|
||||||
|
|
||||||
|
### ---- ###
|
||||||
|
|
||||||
|
echo "Excuting update"
|
||||||
|
make update
|
||||||
|
|
||||||
|
echo "Checking for changes..."
|
||||||
|
git diff --exit-code && exit 0
|
||||||
|
|
||||||
|
echo "Updating repository..."
|
||||||
|
make tag
|
||||||
|
|
||||||
|
git push -q https://${GH_USER}:${GH_TOKEN}@github.com/luzifer-docker/vault.git master --tags
|
Loading…
Reference in a new issue