mirror of
https://github.com/spritsail/plex-media-server.git
synced 2024-12-20 11:34:36 +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:
parent
f53787a230
commit
7dea897666
36
.drone.yml
36
.drone.yml
@ -2,6 +2,12 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: build-amd64
|
name: build-amd64
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
- tag
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
@ -50,8 +56,36 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: update-cron
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- cron
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: update
|
||||||
|
pull: always
|
||||||
|
image: spritsail/alpine
|
||||||
|
commands:
|
||||||
|
- apk add bash curl jq git
|
||||||
|
- ./update.sh
|
||||||
|
|
||||||
|
- name: push
|
||||||
|
pull: always
|
||||||
|
image: appleboy/drone-git-push
|
||||||
|
settings:
|
||||||
|
branch: pass
|
||||||
|
remote: git@github.com:spritsail/plex-media-server.git
|
||||||
|
ssh_key: {from_secret: git_ssh_key}
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 9ccac4af6a5a1f3849f3593741c44df1564956093fc038f628fa500973969b43
|
hmac: 21c718e301b4ad099b8a7c6cd9f0021e5fd86fcbd3ba14a16184a40eca155fd0
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -11,13 +11,16 @@ sed -Ei \
|
|||||||
Dockerfile
|
Dockerfile
|
||||||
|
|
||||||
if ! git diff --quiet --exit-code Dockerfile; then
|
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 reset --soft
|
||||||
git add -- Dockerfile
|
git add -- Dockerfile
|
||||||
git commit \
|
git commit \
|
||||||
--author="Spritsail Bot <bot@spritsail.io>" \
|
|
||||||
--no-gpg-sign \
|
--no-gpg-sign \
|
||||||
|
--signoff \
|
||||||
-m "Update to Plex ${VERSION%-*}"
|
-m "Update to Plex ${VERSION%-*}"
|
||||||
git push origin HEAD
|
|
||||||
else
|
else
|
||||||
>&2 echo No update available
|
>&2 echo No update available
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user