2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-12-20 11:34:36 +00:00

Fix .drone.yml formatting

This commit is contained in:
Joe Groocock 2017-08-24 18:15:51 +01:00
parent ee78c109bb
commit 69a9f53e64
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -7,7 +7,8 @@ pipeline:
identify: identify:
image: docker image: docker
commands: commands:
# Grab the current version, prevents race conditions #### Pass this into the Dockerfile somehow? # Grab the current version, prevents race conditions
#### Pass this into the Dockerfile somehow?
- apk add --no-cache openssl jq - apk add --no-cache openssl jq
- wget -qO- https://adam-ant.co.uk/plex/version.php | tee /dev/stderr | jq -r .release > .plex_version - wget -qO- https://adam-ant.co.uk/plex/version.php | tee /dev/stderr | jq -r .release > .plex_version
@ -29,7 +30,7 @@ pipeline:
- sleep 10 # Wait for plex to start! - sleep 10 # Wait for plex to start!
- docker logs DEV - docker logs DEV
- curl -sSL docker:32400/identity | tee /dev/stderr | xmlstarlet sel -t -v "/MediaContainer/@version" | grep -qw $CUR_VERSION - curl -sSL docker:32400/identity | tee /dev/stderr | xmlstarlet sel -t -v "/MediaContainer/@version" | grep -qw $CUR_VERSION
- docker kill DEV #Not really needed, but keeps things quick - docker kill DEV # Not really needed, but keeps things quick
publish: publish:
image: docker image: docker
@ -37,14 +38,14 @@ pipeline:
environment: environment:
- DOCKER_HOST=tcp://docker:2375 - DOCKER_HOST=tcp://docker:2375
commands: commands:
#Grab just the version, not the hash. Used for tagging # Grab just the version, not the hash. Used for tagging
- export CUR_VERSION=$(cat .plex_version | cut -d \- -f1 ) - export CUR_VERSION=$(cat .plex_version | cut -d \- -f1 )
- echo $DOCKER_USER - echo $DOCKER_USER
- docker tag devbuild adamant/plexmediaserver:latest - docker tag devbuild adamant/plexmediaserver:latest
- docker tag devbuild adamant/plexmediaserver:$CUR_VERSION - docker tag devbuild adamant/plexmediaserver:$CUR_VERSION
- docker login -u $DOCKER_USER -p $DOCKER_PASS - docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push adamant/plexmediaserver - docker push adamant/plexmediaserver
- echo "CONGRATS! SUCCESSFULLY BUILT PLEX VERSION "$CUR_VERSION - echo "CONGRATS! SUCCESSFULLY BUILT PLEX VERSION $CUR_VERSION"
downstream: downstream:
image: plugins/downstream image: plugins/downstream