mirror of
https://github.com/spritsail/plex-media-server.git
synced 2024-12-20 11:34:36 +00:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
pipeline:
|
|
build:
|
|
image: spritsail/docker-build
|
|
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
repo: plex-nofonts-dev
|
|
|
|
test-bin:
|
|
image: spritsail/docker-test
|
|
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
repo: plex-nofonts-dev
|
|
run: |
|
|
curl --version &&
|
|
xmlstarlet --version
|
|
|
|
test:
|
|
image: spritsail/docker-test
|
|
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
repo: plex-nofonts-dev
|
|
curl: ':32400/identity'
|
|
delay: 5
|
|
retry: 10
|
|
pipe: |
|
|
xmlstarlet sel -t -v "/MediaContainer/@version" |
|
|
grep -qw "$(label io.spritsail.version.plex | cut -d- -f1)"
|
|
|
|
publish:
|
|
image: spritsail/docker-publish
|
|
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
secrets: [ docker_username, docker_password ]
|
|
when: { branch: [ nofonts ], event: [ push, tag, deployment ] }
|
|
from: plex-nofonts-dev
|
|
repo: spritsail/plex-media-server
|
|
tags:
|
|
- 'nofonts'
|
|
- '%label io.spritsail.version.plex | %prefix nofonts | %remsuf [0-9a-f]+$ | %auto 2'
|
|
|
|
notify:
|
|
image: spritsail/notify
|
|
when: { status: [ success, failure ] }
|
|
secrets: [ webhook_url, notify_token ]
|