mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-09-20 07:16:26 +08:00
Update dockerfiles and publish script
This commit is contained in:
parent
75f2f2535a
commit
c1b8fc971a
|
@ -6,14 +6,13 @@ WORKDIR /joal/
|
|||
RUN apt-get update \
|
||||
&& apt-get install -y ca-certificates curl \
|
||||
&& JOAL_VERSION="2.0.5" \
|
||||
&& curl -LO https://github.com/anthonyraymond/joal/releases/download/v2.0.5/joal.tar.gz \
|
||||
&& curl -LO "https://github.com/anthonyraymond/joal/releases/download/v$JOAL_VERSION/joal.tar.gz" \
|
||||
&& tar --wildcards -zxvf joal.tar.gz "jack-of-all-trades-$JOAL_VERSION.jar" \
|
||||
&& mv "jack-of-all-trades-$JOAL_VERSION.jar" joal.jar \
|
||||
&& rm joal.tar.gz \
|
||||
&& apt-get remove -y curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
EXPOSE 5081 49152-65534
|
||||
|
||||
VOLUME /data
|
||||
|
|
|
@ -6,7 +6,7 @@ WORKDIR /joal/
|
|||
RUN apt-get update \
|
||||
&& apt-get install -y ca-certificates curl \
|
||||
&& JOAL_VERSION="2.0.5" \
|
||||
&& curl -LO https://github.com/anthonyraymond/joal/releases/download/v2.0.5/joal.tar.gz \
|
||||
&& curl -LO "https://github.com/anthonyraymond/joal/releases/download/v$JOAL_VERSION/joal.tar.gz" \
|
||||
&& tar --wildcards -zxvf joal.tar.gz "jack-of-all-trades-$JOAL_VERSION.jar" \
|
||||
&& mv "jack-of-all-trades-$JOAL_VERSION.jar" joal.jar \
|
||||
&& rm joal.tar.gz \
|
||||
|
|
10
publish.sh
10
publish.sh
|
@ -12,6 +12,14 @@ if ! grep -Fq "<version>$tagName</version>" ./pom.xml; then
|
|||
echo -e "$(tput setaf 1)WOW, wait! The provided tag does not match the pom.xml version$(tput sgr0)"
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -Fq "JOAL_VERSION=\"$tagName\"" ./Dockerfile; then
|
||||
echo -e "$(tput setaf 1)WOW, wait! The provided tag does not match the Dockerfile version$(tput sgr0)"
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -Fq "JOAL_VERSION=\"$tagName\"" ./Dockerfile.arm; then
|
||||
echo -e "$(tput setaf 1)WOW, wait! The provided tag does not match the Dockerfile.arm version$(tput sgr0)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# REDEFINE THE TAG NAME (prefixed with 'v')
|
||||
tagName=v$tagName
|
||||
|
@ -35,4 +43,4 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "$(tput setaf 2)Everything went fine :)$(tput sgr0)"
|
||||
echo -e "$(tput setaf 2)Everything went fine :)$(tput sgr0)"
|
||||
|
|
Loading…
Reference in a new issue