Add auto-update trigger

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-04-11 13:25:39 +02:00
parent 003698662f
commit 2064298759
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 22 additions and 1 deletions

View file

@ -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
View 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