Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
troytc authored Jan 21, 2025
1 parent 761cb5c commit 23199a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ RUN mkdir /config
RUN apt-get update && apt-get install -y jq

# Fetch the version string and set it as an environment variable
RUN VERSION=$(wget -q -O - https://api.github.com/repos/jagrosh/MusicBot/releases/latest | jq -r '.tag_name') && \
RUN VERSION=$(wget -q -O - https://api.github.com/repos/SeVile/MusicBot/releases/latest | jq -r '.tag_name') && \
echo "VERSION=$VERSION" > /tmp/version.env

# Load the version variable into the environment
RUN . /tmp/version.env && \
wget -q -O - https://api.github.com/repos/jagrosh/MusicBot/releases/latest | jq -r '.assets[] | select(.name | contains("jar")) | .browser_download_url' | xargs wget -O JMusicBot.jar
wget -q -O - https://api.github.com/repos/SeVile/MusicBot/releases/latest | jq -r '.assets[] | select(.name | contains("jar")) | .browser_download_url' | xargs wget -O JMusicBot.jar

# Use ARG to make the version available at build time
ARG VERSION
Expand Down

0 comments on commit 23199a6

Please sign in to comment.