Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from linuxserver-labs/APP_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Apr 22, 2022
2 parents 34c6bd4 + af37de5 commit 77efb27
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.15 as server-buildstage

# set version label
ARG YOUR_SPOTIFY_RELEASE
LABEL build_version="Linuxserver.io version:- ${YOUR_SPOTIFY_RELEASE}"
LABEL maintainer="thespad"
ARG BUILD_DATE
ARG VERSION
ARG APP_VERSION

RUN \
apk -U --update --no-cache add --virtual=server-build-dependencies \
Expand All @@ -18,13 +18,13 @@ RUN \
python3-dev \
yarn && \
echo "*** install your_spotify server ***" && \
if [ -z ${YOUR_SPOTIFY_RELEASE+x} ]; then \
YOUR_SPOTIFY_RELEASE=$(curl -sX GET "https://api.github.com/repos/Yooooomi/your_spotify/releases/latest" \
if [ -z ${APP_VERSION+x} ]; then \
APP_VERSION=$(curl -sX GET "https://api.github.com/repos/Yooooomi/your_spotify/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/your_spotify.tar.gz -L \
"https://github.com/Yooooomi/your_spotify/archive/${YOUR_SPOTIFY_RELEASE}.tar.gz" && \
"https://github.com/Yooooomi/your_spotify/archive/${APP_VERSION}.tar.gz" && \
mkdir -p /app/your_spotify && \
tar xzf \
/tmp/your_spotify.tar.gz -C \
Expand Down

0 comments on commit 77efb27

Please sign in to comment.