2019-08-23 21:07:45 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: build-amd64
|
|
|
|
|
2021-02-16 15:22:57 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
- tag
|
|
|
|
|
2019-08-23 21:07:45 +00:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: spritsail/docker-build
|
|
|
|
settings:
|
2019-02-13 23:08:39 +00:00
|
|
|
make: true
|
2018-07-08 13:30:52 +00:00
|
|
|
|
2019-08-23 21:07:45 +00:00
|
|
|
- name: test-bin
|
|
|
|
pull: always
|
|
|
|
image: spritsail/docker-test
|
|
|
|
settings:
|
2018-08-24 10:56:11 +00:00
|
|
|
run: |
|
|
|
|
curl --version &&
|
|
|
|
xmlstarlet --version
|
2018-08-09 09:59:39 +00:00
|
|
|
|
2019-08-23 21:07:45 +00:00
|
|
|
- name: test
|
|
|
|
pull: always
|
|
|
|
image: spritsail/docker-test
|
|
|
|
settings:
|
|
|
|
curl: :32400/identity
|
2018-08-06 12:29:46 +00:00
|
|
|
delay: 5
|
|
|
|
pipe: |
|
|
|
|
xmlstarlet sel -t -v "/MediaContainer/@version" |
|
|
|
|
grep -qw "$(label io.spritsail.version.plex | cut -d- -f1)"
|
2019-08-23 21:07:45 +00:00
|
|
|
retry: 10
|
2017-06-30 15:39:55 +00:00
|
|
|
|
2019-08-23 21:07:45 +00:00
|
|
|
- name: publish
|
|
|
|
pull: always
|
|
|
|
image: spritsail/docker-publish
|
|
|
|
settings:
|
2018-03-16 15:26:23 +00:00
|
|
|
repo: spritsail/plex-media-server
|
|
|
|
tags:
|
2019-08-23 21:07:45 +00:00
|
|
|
- latest
|
|
|
|
- "%label io.spritsail.version.plex | %remsuf [0-9a-f]+$ | %auto 2"
|
2020-07-11 15:33:15 +00:00
|
|
|
username: {from_secret: docker_username}
|
|
|
|
password: {from_secret: docker_password}
|
2019-08-23 21:07:45 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2020-07-11 15:33:15 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: update-readme
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: dockerhub-readme
|
|
|
|
pull: always
|
|
|
|
image: jlesage/drone-push-readme
|
|
|
|
settings:
|
|
|
|
username: {from_secret: docker_username}
|
|
|
|
password: {from_secret: docker_password}
|
|
|
|
repo: spritsail/plex-media-server
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- pass
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2021-02-16 15:22:57 +00:00
|
|
|
---
|
|
|
|
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: master
|
|
|
|
remote: git@github.com:spritsail/plex-media-server.git
|
|
|
|
ssh_key: {from_secret: git_ssh_key}
|
|
|
|
|
2019-08-23 21:07:45 +00:00
|
|
|
---
|
|
|
|
kind: signature
|
2021-02-16 15:22:57 +00:00
|
|
|
hmac: ffa33c4e8d4d71e4a1dcbc850859ebde679f6c574885d99df3ca9496e1db55b9
|
2018-03-16 15:26:23 +00:00
|
|
|
|
2019-08-23 21:07:45 +00:00
|
|
|
...
|