mirror of
https://github.com/EvilFreelancer/docker-routeros.git
synced 2025-06-20 21:35:50 +02:00
Rename to ROUTEROS_VERSION.
This commit is contained in:
parent
7c5f724e25
commit
9ce84b8a7a
2 changed files with 4 additions and 5 deletions
|
@ -17,9 +17,9 @@ RUN set -xe \
|
||||||
bridge-utils iptables jq bash python3
|
bridge-utils iptables jq bash python3
|
||||||
|
|
||||||
# Environments which may be change
|
# Environments which may be change
|
||||||
ENV ROUTEROS_VERSON="7.1beta6"
|
ENV ROUTEROS_VERSION="7.1beta6"
|
||||||
ENV ROUTEROS_IMAGE="chr-$ROUTEROS_VERSON.vdi"
|
ENV ROUTEROS_IMAGE="chr-${ROUTEROS_VERSION}.vdi"
|
||||||
ENV ROUTEROS_PATH="https://download.mikrotik.com/routeros/$ROUTEROS_VERSON/$ROUTEROS_IMAGE"
|
ENV ROUTEROS_PATH="https://download.mikrotik.com/routeros/${ROUTEROS_VERSION}/${ROUTEROS_IMAGE}"
|
||||||
|
|
||||||
# Download VDI image from remote site
|
# Download VDI image from remote site
|
||||||
RUN wget "$ROUTEROS_PATH" -O "/routeros/$ROUTEROS_IMAGE"
|
RUN wget "$ROUTEROS_PATH" -O "/routeros/$ROUTEROS_IMAGE"
|
||||||
|
|
3
cron.sh
3
cron.sh
|
@ -36,11 +36,10 @@ getTarballs | while read line; do
|
||||||
|
|
||||||
if [ "x$(checkTag "$tag")" == "x" ]
|
if [ "x$(checkTag "$tag")" == "x" ]
|
||||||
then
|
then
|
||||||
|
|
||||||
url="https://download.mikrotik.com/routeros/$tag/chr-$tag.vdi"
|
url="https://download.mikrotik.com/routeros/$tag/chr-$tag.vdi"
|
||||||
if curl --output /dev/null --silent --head --fail "$url"; then
|
if curl --output /dev/null --silent --head --fail "$url"; then
|
||||||
echo ">>> URL exists: $url"
|
echo ">>> URL exists: $url"
|
||||||
sed -r "s/(ROUTEROS_VERSON=\")(.*)(\")/\1$tag\3/g" -i Dockerfile
|
sed -r "s/(ROUTEROS_VERSION=\")(.*)(\")/\1$tag\3/g" -i Dockerfile
|
||||||
git commit -m "Release of RouterOS changed to $tag" -a
|
git commit -m "Release of RouterOS changed to $tag" -a
|
||||||
git push
|
git push
|
||||||
git tag "$tag"
|
git tag "$tag"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue