mirror of
https://github.com/EvilFreelancer/docker-routeros.git
synced 2025-08-04 01:54:47 +02:00
Merge pull request #32 from Bluebugs/master
Update curl command and download url to match Mikrotik website change
This commit is contained in:
commit
7dddfc3239
2 changed files with 2 additions and 2 deletions
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
|||
- name: Check new release
|
||||
id: check_release
|
||||
run: |
|
||||
LAST_MIKROTIK_RELEASE=$(curl https://mikrotik.com/download/archive -o - 2>/dev/null | grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//' | grep -i vdi | sed 's:.*/::' | sort -V | tail -n 1 | sed -r 's/chr\-(.*)\.vdi/\1/gi'| sed -r 's/\.zip//gi')
|
||||
LAST_MIKROTIK_RELEASE=$( curl https://mikrotik.com/download/archive -o - 2>/dev/null | grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//' | grep -i c-stable | sed -r 's/\#c-stable-v//gi'|sed -r 's/_/\./gi'|sort -V|tail -n 1)
|
||||
NEW_TAG=$(grep "ROUTEROS_VERSION=\"" Dockerfile |cut -d "\"" -f 2)
|
||||
if [ "$LAST_MIKROTIK_RELEASE" != "$NEW_TAG" ]; then
|
||||
echo "New version found: $LAST_MIKROTIK_RELEASE"
|
||||
|
|
|
@ -19,7 +19,7 @@ RUN set -xe \
|
|||
# Environments which may be change
|
||||
ENV ROUTEROS_VERSION="7.14.1"
|
||||
ENV ROUTEROS_IMAGE="chr-${ROUTEROS_VERSION}.vdi"
|
||||
ENV ROUTEROS_PATH="https://download.mikrotik.com/routeros/${ROUTEROS_VERSION}/${ROUTEROS_IMAGE}.zip"
|
||||
ENV ROUTEROS_PATH="https://cdn.mikrotik.com/routeros/${ROUTEROS_VERSION}/${ROUTEROS_IMAGE}.zip"
|
||||
|
||||
# Download VDI image from remote site
|
||||
RUN wget "$ROUTEROS_PATH" -O "/routeros/${ROUTEROS_IMAGE}.zip" && \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue