Compare commits
1 Commits
9c1c0af65d
...
991326ad99
Author | SHA1 | Date | |
---|---|---|---|
991326ad99 |
77
.drone.yml
77
.drone.yml
@ -1,41 +1,44 @@
|
|||||||
pipeline:
|
kind: pipeline:
|
||||||
build:
|
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:
|
# test-bin:
|
||||||
image: spritsail/docker-test
|
# image: spritsail/docker-test
|
||||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
# volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
||||||
repo: ppass-dev
|
# repo: ppass-dev
|
||||||
run: |
|
# run: |
|
||||||
curl --version &&
|
# curl --version &&
|
||||||
xmlstarlet --version
|
# xmlstarlet --version
|
||||||
|
#
|
||||||
test:
|
# test:
|
||||||
image: spritsail/docker-test
|
# image: spritsail/docker-test
|
||||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
# volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
||||||
repo: ppass-dev
|
# repo: ppass-dev
|
||||||
curl: ':32400/identity'
|
# curl: ':32400/identity'
|
||||||
delay: 5
|
# delay: 5
|
||||||
retry: 10
|
# 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)"
|
||||||
|
#
|
||||||
publish:
|
# publish:
|
||||||
image: spritsail/docker-publish
|
# image: spritsail/docker-publish
|
||||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
# volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
||||||
secrets: [ docker_username, docker_password, microbadger_token ]
|
# secrets: [ docker_username, docker_password, microbadger_token ]
|
||||||
when: { branch: [ pass ], event: [ push, tag, deployment ] }
|
# when: { branch: [ pass ], event: [ push, tag, deployment ] }
|
||||||
from: ppass-dev
|
# from: ppass-dev
|
||||||
repo: spritsail/plex-media-server
|
# repo: spritsail/plex-media-server
|
||||||
tags:
|
# tags:
|
||||||
- 'plexpass'
|
# - 'plexpass'
|
||||||
- '%label io.spritsail.version.plex | %prefix plexpass | %remsuf [0-9a-f]+$ | %auto 2'
|
# - '%label io.spritsail.version.plex | %prefix plexpass | %remsuf [0-9a-f]+$ | %auto 2'
|
||||||
|
#
|
||||||
notify:
|
# notify:
|
||||||
image: spritsail/notify
|
# image: spritsail/notify
|
||||||
when: { status: [ success, failure ] }
|
# when: { status: [ success, failure ] }
|
||||||
secrets: [ webhook_url, notify_token ]
|
# secrets: [ webhook_url, notify_token ]
|
||||||
|
Loading…
Reference in New Issue
Block a user