Files
charts/.containers/apps/plex/latest-version.sh
Kjeld Schouten-Lebbing 99bb72cb13 Use third-party containers as source (#367)
* try fetching ubuntu container from KAH

* test using github token

* oops

* fix container build process for PR's

* v

* whoopsies

* link Alpine to KAH

* try porting bazarr

* oops

* improve bazarr labeling

* need version before setting dockerfile

* Fix platform (as SCALE doesn't run on ARM officially)

* Cleanup all Apps related to KAH

* only update base if base exists and do so on an per-app basis
2021-04-16 14:21:18 +02:00

8 lines
372 B
Bash
Executable File

#!/usr/bin/env bash
TOKEN=$(curl https://ghcr.io/token\?scope\="repository:k8s-at-home/plex:pull" | jq --raw-output '.[]')
version=$(curl -H "Authorization: Bearer ${TOKEN}" https://ghcr.io/v2/k8s-at-home/plex/tags/list | jq --raw-output '.tags[]' | grep -v latest | grep -v buildcache | tail -n1)
version="${version#*v}"
version="${version#*release-}"
echo "${version}"