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:
@ -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
|
||||
|
Reference in New Issue
Block a user