Getting ready to setup automated build pipeline
This commit is contained in:
parent
b9e5aace50
commit
2478a5d1cc
2 changed files with 3 additions and 4 deletions
|
@ -6,8 +6,7 @@ RUN apk add curl jq
|
||||||
|
|
||||||
LABEL Marc Tönsing <marc@marc.tv>
|
LABEL Marc Tönsing <marc@marc.tv>
|
||||||
|
|
||||||
ARG version=1.19
|
ARG version=1.19.3
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
############## Download Paper with API #################
|
############## Download Paper with API #################
|
||||||
|
@ -32,7 +31,7 @@ WORKDIR /data
|
||||||
COPY --from=build /opt/minecraft/paperclip.jar /opt/minecraft/paperspigot.jar
|
COPY --from=build /opt/minecraft/paperclip.jar /opt/minecraft/paperspigot.jar
|
||||||
|
|
||||||
# Install and run rcon
|
# Install and run rcon
|
||||||
ARG RCON_CLI_VER=1.4.8
|
ARG RCON_CLI_VER=1.6.1
|
||||||
ADD https://github.com/itzg/rcon-cli/releases/download/${RCON_CLI_VER}/rcon-cli_${RCON_CLI_VER}_linux_amd64.tar.gz /tmp/rcon-cli.tgz
|
ADD https://github.com/itzg/rcon-cli/releases/download/${RCON_CLI_VER}/rcon-cli_${RCON_CLI_VER}_linux_amd64.tar.gz /tmp/rcon-cli.tgz
|
||||||
RUN tar -x -C /usr/local/bin -f /tmp/rcon-cli.tgz rcon-cli && \
|
RUN tar -x -C /usr/local/bin -f /tmp/rcon-cli.tgz rcon-cli && \
|
||||||
rm /tmp/rcon-cli.tgz
|
rm /tmp/rcon-cli.tgz
|
||||||
|
|
|
@ -6,4 +6,4 @@ Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default")][
|
||||||
curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4.212 Safari/537.36" -o paperclip.jar "https://papermc.io/api/v2/projects/paper/versions/$Version/builds/$Build/downloads/paper-$Version-$Build.jar"
|
curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4.212 Safari/537.36" -o paperclip.jar "https://papermc.io/api/v2/projects/paper/versions/$Version/builds/$Build/downloads/paper-$Version-$Build.jar"
|
||||||
echo -----------------
|
echo -----------------
|
||||||
echo $1#$Build
|
echo $1#$Build
|
||||||
echo -----------------
|
echo -----------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue