2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-11-03 16:36:22 +00:00

Update .drone.yml to 1.x

This commit is contained in:
Joe Groocock 2019-08-23 22:07:45 +01:00
parent 0cd9b2d3a5
commit a6fd98cb21
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -1,41 +1,76 @@
pipeline: ---
build: kind: pipeline
image: spritsail/docker-build name: build-amd64
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
repo: plex-dev
make: true
test-bin: platform:
image: spritsail/docker-test os: linux
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ] arch: amd64
steps:
- name: build
pull: always
image: spritsail/docker-build
settings:
make: true
repo: plex-dev
- name: test-bin
pull: always
image: spritsail/docker-test
settings:
repo: plex-dev repo: plex-dev
run: | run: |
curl --version && curl --version &&
xmlstarlet --version xmlstarlet --version
test: - name: test
image: spritsail/docker-test pull: always
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ] image: spritsail/docker-test
repo: plex-dev settings:
curl: ':32400/identity' curl: :32400/identity
delay: 5 delay: 5
retry: 10
pipe: | pipe: |
xmlstarlet sel -t -v "/MediaContainer/@version" | xmlstarlet sel -t -v "/MediaContainer/@version" |
grep -qw "$(label io.spritsail.version.plex | cut -d- -f1)" grep -qw "$(label io.spritsail.version.plex | cut -d- -f1)"
repo: plex-dev
retry: 10
publish: - name: publish
image: spritsail/docker-publish pull: always
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ] image: spritsail/docker-publish
secrets: [ docker_username, docker_password, microbadger_token ] settings:
when: { branch: [ master ], event: [ push, tag, deployment ] }
from: plex-dev from: plex-dev
repo: spritsail/plex-media-server repo: spritsail/plex-media-server
tags: tags:
- 'latest' - latest
- '%label io.spritsail.version.plex | %remsuf [0-9a-f]+$ | %auto 2' - "%label io.spritsail.version.plex | %remsuf [0-9a-f]+$ | %auto 2"
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
when:
branch:
- master
event:
- push
- tag
notify: - name: notify
image: spritsail/notify pull: always
when: { status: [ success, failure ] } image: spritsail/notify
secrets: [ webhook_url, notify_token ] environment:
NOTIFY_TOKEN:
from_secret: notify_token
WEBHOOK_URL:
from_secret: webhook_url
when:
status:
- success
- failure
---
kind: signature
hmac: c1c9e7fe83806aba030d7395e11d9077863538131d04c8c291600fe8c84b99bc
...