Update drone config to 1.x
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
f7b43c6090
commit
200c39520a
47
.drone.yml
47
.drone.yml
@ -1,41 +1,16 @@
|
|||||||
pipeline:
|
---
|
||||||
build:
|
kind: pipeline
|
||||||
|
name: build-and-publish
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
image: spritsail/docker-build
|
image: spritsail/docker-build
|
||||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
settings:
|
||||||
repo: ppass-dev
|
repo: ppass-dev
|
||||||
make: true
|
make: true
|
||||||
|
|
||||||
test-bin:
|
---
|
||||||
image: spritsail/docker-test
|
kind: signature
|
||||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
hmac: abb9eb8389cc42164fb95c63730e5dfb619c4009b0cdf0de444ad2d74d449363
|
||||||
repo: ppass-dev
|
|
||||||
run: |
|
|
||||||
curl --version &&
|
|
||||||
xmlstarlet --version
|
|
||||||
|
|
||||||
test:
|
...
|
||||||
image: spritsail/docker-test
|
|
||||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
|
||||||
repo: ppass-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, microbadger_token ]
|
|
||||||
when: { branch: [ pass ], event: [ push, tag, deployment ] }
|
|
||||||
from: ppass-dev
|
|
||||||
repo: spritsail/plex-media-server
|
|
||||||
tags:
|
|
||||||
- 'plexpass'
|
|
||||||
- '%label io.spritsail.version.plex | %prefix plexpass | %remsuf [0-9a-f]+$ | %auto 2'
|
|
||||||
|
|
||||||
notify:
|
|
||||||
image: spritsail/notify
|
|
||||||
when: { status: [ success, failure ] }
|
|
||||||
secrets: [ webhook_url, notify_token ]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user