mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-11-09 12:30:01 +00:00
22 lines
372 B
Bash
22 lines
372 B
Bash
|
#!/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
|