Remove redundant tag step

This commit is contained in:
Joe Groocock 2018-07-29 11:59:55 +01:00
parent 285d5d7a8a
commit 2f04732b41

View File

@ -4,18 +4,12 @@ pipeline:
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ] volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
repo: plex-dev repo: plex-dev
tag:
image: docker
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
commands:
- docker inspect -f '{{ index .Config.Labels "io.spritsail.version.plex" }}' plex-dev | cut -d- -f1 > .plex_tag
test: test:
image: docker image: docker
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ] volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
commands: commands:
- apk add --no-cache curl xmlstarlet grep - apk add --no-cache curl xmlstarlet grep
- export CUR_VERSION="$(cat .plex_tag)" - export CUR_VERSION="$(docker inspect -f '{{ index .Config.Labels "io.spritsail.version.plex" }}' plex-dev | cut -d- -f1)"
- CON_NAME=$(docker run --rm -d plex-dev) - CON_NAME=$(docker run --rm -d plex-dev)
- timeout -t 15 docker logs $$CON_NAME & - timeout -t 15 docker logs $$CON_NAME &
- sleep 10 # Wait for plex to start! - sleep 10 # Wait for plex to start!
@ -35,7 +29,7 @@ pipeline:
repo: spritsail/plex-media-server repo: spritsail/plex-media-server
tags: tags:
- 'latest' - 'latest'
- '%fileauto: .plex_tag' - '%labelauto: io.spritsail.version.plex'
notify: notify:
image: spritsail/notify image: spritsail/notify