2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2025-07-09 17:10:56 +00:00

Pass plex version into container as build-arg

This commit is contained in:
2017-09-20 00:03:03 +01:00
parent 0e6cb00bde
commit 533a6da6f4
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,6 @@ pipeline:
image: docker
commands:
# Grab the current version, prevents race conditions
#### Pass this into the Dockerfile somehow?
- apk add --no-cache openssl jq
- wget -qO- https://adam-ant.co.uk/plex/version.php | tee /dev/stderr | jq -r .release > .plex_version
@ -12,7 +11,7 @@ pipeline:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build --no-cache --pull -t plex-dev .
- docker build --no-cache --pull --build-arg PLEX_VER="$(cat .plex_version)" -t plex-dev .
test:
image: docker