Try and always get the latest version for the latest branch

This commit is contained in:
TheSpad 2022-05-26 15:56:22 +01:00
parent 568940885d
commit 57415949d9
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
4 changed files with 10 additions and 7 deletions

View File

@ -47,8 +47,9 @@ RUN \
echo "**** install phpmyadmin ****" && \
mkdir -p /app/phpmyadmin && \
if [ -z ${PHPMYADMIN_VERSION+x} ]; then \
PHPMYADMIN_VERSION=$(curl -sX GET "https://api.github.com/repos/phpmyadmin/phpmyadmin/releases" \
| jq -r 'first(.[] | select(.name | startswith("5.2")) | select (.prerelease==false)) | .name'); \
PHPMYADMIN_VERSION=$(curl -sX GET 'https://api.github.com/repos/phpmyadmin/phpmyadmin/releases' \
| jq -r '.[] | select (.prerelease==false)' \
| jq -rs 'max_by(.name | split(".") | map(tonumber)) | .name'); \
fi && \
curl -s -o \
/tmp/phpmyadmin.tar.xz -L \

View File

@ -47,8 +47,9 @@ RUN \
echo "**** install phpmyadmin ****" && \
mkdir -p /app/phpmyadmin && \
if [ -z ${PHPMYADMIN_VERSION+x} ]; then \
PHPMYADMIN_VERSION=$(curl -sX GET "https://api.github.com/repos/phpmyadmin/phpmyadmin/releases" \
| jq -r 'first(.[] | select(.name | startswith("5.2")) | select (.prerelease==false)) | .name'); \
PHPMYADMIN_VERSION=$(curl -sX GET 'https://api.github.com/repos/phpmyadmin/phpmyadmin/releases' \
| jq -r '.[] | select (.prerelease==false)' \
| jq -rs 'max_by(.name | split(".") | map(tonumber)) | .name'); \
fi && \
curl -s -o \
/tmp/phpmyadmin.tar.xz -L \

View File

@ -47,8 +47,9 @@ RUN \
echo "**** install phpmyadmin ****" && \
mkdir -p /app/phpmyadmin && \
if [ -z ${PHPMYADMIN_VERSION+x} ]; then \
PHPMYADMIN_VERSION=$(curl -sX GET "https://api.github.com/repos/phpmyadmin/phpmyadmin/releases" \
| jq -r 'first(.[] | select(.name | startswith("5.2")) | select (.prerelease==false)) | .name'); \
PHPMYADMIN_VERSION=$(curl -sX GET 'https://api.github.com/repos/phpmyadmin/phpmyadmin/releases' \
| jq -r '.[] | select (.prerelease==false)' \
| jq -rs 'max_by(.name | split(".") | map(tonumber)) | .name'); \
fi && \
curl -s -o \
/tmp/phpmyadmin.tar.xz -L \

View File

@ -3,7 +3,7 @@
# jenkins variables
project_name: docker-phpmyadmin
external_type: na
custom_version_command: "curl -sX GET 'https://api.github.com/repos/phpmyadmin/phpmyadmin/releases' | jq -r 'first(.[] | select(.name | startswith(\"5.2\")) | select (.prerelease==false)) | .name'"
custom_version_command: "curl -sX GET 'https://api.github.com/repos/phpmyadmin/phpmyadmin/releases' | jq -r '.[] | select (.prerelease==false)' | jq -rs 'max_by(.name | split(\".\") | map(tonumber)) | .name'"
release_type: stable
release_tag: latest
ls_branch: main