2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2025-06-25 19:30:55 +00:00

Bump Plex build on cron and attempt to push to git

This should cover 95% of cases where we'd want to bump Plex, but
autonomously. If the build fails or the tests fail we'll know about it
and can manually investigate.

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
2021-02-16 15:22:57 +00:00
parent 7867337400
commit a09bf8c4ff
2 changed files with 40 additions and 3 deletions

View File

@ -11,13 +11,16 @@ sed -Ei \
Dockerfile
if ! git diff --quiet --exit-code Dockerfile; then
export GIT_COMMITTER_NAME="Spritsail Bot"
export GIT_COMMITTER_EMAIL="<bot@spritsail.io>"
export GIT_AUTHOR_NAME="$GIT_COMMITTER_NAME"
export GIT_AUTHOR_EMAIL="$GIT_COMMITTER_EMAIL"
git reset --soft
git add -- Dockerfile
git commit \
--author="Spritsail Bot <bot@spritsail.io>" \
--no-gpg-sign \
--signoff \
-m "Update to Plex ${VERSION%-*}"
git push origin HEAD
else
>&2 echo No update available
fi