2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-11-04 17:06:22 +00:00
plex-media-server/.drone.yml
Joe Groocock 7dea897666
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>
2021-02-16 15:24:53 +00:00

92 lines
1.5 KiB
YAML

---
kind: pipeline
name: build-amd64
trigger:
event:
- push
- pull_request
- tag
platform:
os: linux
arch: amd64
steps:
- name: build
pull: always
image: spritsail/docker-build
settings:
make: true
- name: test-bin
pull: always
image: spritsail/docker-test
settings:
run: |
curl --version &&
xmlstarlet --version
- name: test
pull: always
image: spritsail/docker-test
settings:
curl: :32400/identity
delay: 5
pipe: |
xmlstarlet sel -t -v "/MediaContainer/@version" |
grep -qw "$(label io.spritsail.version.plex | cut -d- -f1)"
retry: 10
- name: publish
pull: always
image: spritsail/docker-publish
settings:
repo: spritsail/plex-media-server
tags:
- plexpass
- "%label io.spritsail.version.plex | %prefix plexpass | %remsuf [0-9a-f]+$ | %auto 2"
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
branch:
- pass
event:
- 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
hmac: 21c718e301b4ad099b8a7c6cd9f0021e5fd86fcbd3ba14a16184a40eca155fd0
...