2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-11-05 01:16:23 +00:00
plex-media-server/.drone.yml
Joe Groocock 22bc203455
Build using auto-generated Docker image name
This allows running multiple builds of the same pipeline on one Docker
daemon, and also makes configuration simpler, as the  argument is
implied if not provided.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-04 00:23:22 +00:00

58 lines
1.0 KiB
YAML

---
kind: pipeline
name: build-amd64
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: signature
hmac: 9ccac4af6a5a1f3849f3593741c44df1564956093fc038f628fa500973969b43
...