Skip to content

Commit

Permalink
fix batches
Browse files Browse the repository at this point in the history
  • Loading branch information
kiorky committed Sep 20, 2024
1 parent 8e7bbac commit 1d557ab
Show file tree
Hide file tree
Showing 25 changed files with 87 additions and 57 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ jobs:
fail-fast: false
matrix:
IMAGES:
- "library/redmine/5.1 library/redmine/5.1-alpine"
- "library/redmine/5 library/redmine/5-alpine"
- "library/redmine/4-passenger"
- "library/redmine/4 library/redmine/4-alpine library/redmine/4-passenger"
- "library/redmine/alpine library/redmine/latest library/redmine/passenger"
- "library/redmine/5.0 library/redmine/5.0-alpine library/redmine/5.1 library/redmine/5.1-alpine"
- "library/redmine/4.0 library/redmine/4.0-alpine library/redmine/4.0-passenger library/redmine/4.1 library/redmine/4.1-alpine library/redmine/4.1-passenger library/redmine/4.2 library/redmine/4.2-alpine library/redmine/4.2-passenger"
#- "corpusops/test/a corpusops/test/b corpusops/test/c"
# all images that werent explicitly told to be built would be built in the next batches
# we span them onto N jobs
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.args
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
45 changes: 23 additions & 22 deletions helpers/up.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
set -e
set -ex
log() { echo "${@}" >&2; }
vv() { log "${@}";"${@}"; }
DO_UPDATE=1
Expand All @@ -22,13 +22,15 @@ oldubuntu="^(10\.|12\.|13\.|14\.|15\.|16\.|17\.|18\.10|19\.|20\.10|21\.|22\.10)"
# oldubuntu="^(10\.|12\.|13\.|14.10|15\.|16.10|17\.04)"
NOSOCAT=""
CENTOS_OLDSTABLE=8
CENTOS_OLDSTABLES="6|7|8"
OAPTMIRROR="${OAPTMIRROR:-}"
OYUMMIRROR="${OYUMMIRROR:-}"
NYUMMIRROR="${NYUMMIRROR:-}"
OUBUNTUMIRROR="${OUBUNTUMIRROR:-old-releases.ubuntu.com}"
ODEBIANMIRROR="${ODEBIANMIRROR:-archive.debian.org}"
NDEBIANMIRROR="${NDEBIANMIRROR:-http.debian.net|httpredir.debian.org|deb.debian.org}"
NUBUNTUMIRROR="${NUBUNTUMIRROR:-archive.ubuntu.com|security.ubuntu.com}"
IS_OLD_CENTOS_STABLE=""
SNCENTOSMIRROR="$(echo "${NCENTOSMIRROR}"|sed -re "s/\|.*//g")"
SNDEBIANMIRROR="$(echo "${NDEBIANMIRROR}"|sed -re "s/\|.*//g")"
SNUBUNTUMIRROR="$(echo "${NUBUNTUMIRROR}"|sed -re "s/\|.*//g")"
Expand Down Expand Up @@ -58,27 +60,27 @@ elif [ -e /etc/redhat-release ];then
DISTRIB_RELEASE=$(echo $(head /etc/issue)|awk '{print tolower($3)}')
fi
DISTRIB_MAJOR="$(echo ${DISTRIB_RELEASE}|sed -re "s/\..*//g")"
if [ "x${DISTRIB_ID}" = "xcentos" ] && ( echo "${DISTRIB_MAJOR}" | grep -Eq "^(6|7|8)");then
sed -i 's/^mirrorlist/#mirrorlist/g;s|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
fi
if ( echo $DISTRIB_ID | grep -E -iq "centos|red|fedora" );then
if (echo $DISTRIB_ID|grep -E -iq centos);then
if (echo "$DISTRIB_RELEASE"|egrep -q "8|7");then
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
elif [ $DISTRIB_RELEASE -le $CENTOS_OLDSTABLE ];then
OCENTOSMIRROR="${OCENTOSMIRROR:-vault.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-mirror.centos.org}"
else
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
fi
OYUMMIRROR="${OCENTOSMIRROR}"
NYUMMIRROR="${NCENTOSMIRROR}"
EPEL_RPM_URL="https://dl.fedoraproject.org/pub/epel/epel-release-latest-${DISTRIB_MAJOR}.noarch.rpm"
if [ "x${DISTRIB_ID}" = "xcentos" ] && ( echo "${DISTRIB_MAJOR}" | grep -Eq "$CENTOS_OLDSTABLES");then
IS_OLD_CENTOS_STABLE="1"
EPEL_RPM_URL="https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm"
if (echo "$DISTRIB_RELEASE"|egrep -q "8|7");then
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
elif [ $DISTRIB_RELEASE -le $CENTOS_OLDSTABLE ];then
OCENTOSMIRROR="${OCENTOSMIRROR:-vault.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-mirror.centos.org}"
else
OCENTOSMIRROR="${OCENTOSMIRROR:-mirror.centos.org}"
NCENTOSMIRROR="${NCENTOSMIRROR:-vault.centos.org}"
fi
OYUMMIRROR="${OCENTOSMIRROR}"
NYUMMIRROR="${NCENTOSMIRROR}"
if [ "$OYUMMIRROR" != "x" ];then
sed -i -r -e 's!'$NCENTOSMIRROR'!'$OCENTOSMIRROR'!g' $( find /etc/yum.repos.d -type f; )
sed -i -r -e 's!'$OCENTOSMIRROR'!'$NCENTOSMIRROR'!g' $( find /etc/yum.repos.d -type f; )
fi
sed -i "s/^#.*baseurl=http/baseurl=http/g" $( find /etc/yum.repos.d -type f; )
sed -i "s/^mirrorlist=http/#mirrorlist=http/g" $( find /etc/yum.repos.d -type f; )
fi
if ( grep -q amzn /etc/os-release );then
yuminstall findutils
Expand All @@ -96,9 +98,8 @@ if [ -e /etc/redhat-release ];then
vv yum upgrade -y --nogpg fedora-gpg-keys fedora-repos
fi
if [ ! -e /etc/yum.repos.d/epel.repo ];then
rpm="epel-release-latest-${DISTRIB_MAJOR}.noarch.rpm"
curl -sSLO "https://dl.fedoraproject.org/pub/epel/$rpm"
rpm -ivh $(pwd)/$rpm
curl -sSLO "$EPEL_RPM_URL"
rpm -ivh $(pwd)/$(basename $EPEL_RPM_URL)
fi
if ! ( find --version >/dev/null 2>&1);then
yuminstall findutils
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4-passenger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.0-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.0-passenger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.1-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.1-passenger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.2-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.2-passenger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/5-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/5.0-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/5.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/5.1-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/5.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
2 changes: 1 addition & 1 deletion library/redmine/passenger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ARG NONINTERACTIVE=y
ARG DEBIAN_FRONTEND=noninteractive
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8"
ARG EXTRA_FILES_LIST=""
ARG COPS_SYSTEM=${_cops_SYSTEM}
ARG COPS_SYSTEM=${_cops_SYSTEM-}
ARG FOREGO_RELEASE=latest
ARG REMCO_RELEASE=latest
ARG GOSU_RELEASE=latest
Expand Down
49 changes: 38 additions & 11 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,17 @@ SKIP_DOCKER="docker(\/|:)([0-9]+\.[0-9]+\.|17|18.0[1-6]|1$|1(\.|-)).*"
SKIPPED_TAGS="$SKIP_TF|$SKIP_MINOR_OS|$SKIP_NODE|$SKIP_DOCKER|$SKIP_MINIO|$SKIP_MAILU|$SKIP_MINOR|$SKIP_PRE|$SKIP_OS|$SKIP_PHP|$SKIP_WINDOWS|$SKIP_MISC"
CURRENT_TS=$(date +%s)
IMAGES_SKIP_NS="((mailhog|postgis|pgrouting(-bare)?|^library|dejavu|(minio/(minio|mc))))"
SKIPPED_TAGS="$SKIPPED_TAGS|(redmine:([23])|.*(buster|bullseye|bookworm).*)"

REDMINE_SKIPPED_TAGS="(redmine:([23])|[0-9]+\.[0-9]+(\.[0-9]+)|.*(alpine[0-9]|buster|bullseye|bookworm).*)"
SKIPPED_TAGS="$REDMINE_SKIPPED_TAGS"


# (see docker-elasticsearch for example on how to use)
PROTECTED_VERSIONS=""
default_images="
library/redmine
"
ONLY_ONE_MINOR="postgres|elasticsearch|nginx"
ONLY_ONE_MINOR="postgres|nginx|opensearch|elasticsearch"
PROTECTED_TAGS="corpusops/rsyslog"
find_top_node_() {
img=library/node
Expand All @@ -287,11 +291,28 @@ NODE_TOP="$(echo $(find_top_node))"
MAILU_VERSiON=1.7

BATCHED_IMAGES="\
library/redmine/5.1\
library/redmine/5.1-alpine::30
library/redmine/5\
library/redmine/5-alpine::30
library/redmine/4-passenger::7
library/redmine/4\
library/redmine/4-alpine\
library/redmine/4-passenger::30
library/redmine/alpine\
library/redmine/latest\
library/redmine/passenger::30
library/redmine/5.0\
library/redmine/5.0-alpine\
library/redmine/5.1\
library/redmine/5.1-alpine::30
library/redmine/4.0\
library/redmine/4.0-alpine\
library/redmine/4.0-passenger\
library/redmine/4.1\
library/redmine/4.1-alpine\
library/redmine/4.1-passenger\
library/redmine/4.2\
library/redmine/4.2-alpine\
library/redmine/4.2-passenger::30
"
SKIP_REFRESH_ANCESTORS=${SKIP_REFRESH_ANCESTORS-}

Expand Down Expand Up @@ -481,6 +502,10 @@ gen_image() {
is_skipped() {
local ret=1 t="$@"
if [[ -z $SKIPPED_TAGS ]];then return 1;fi
if [[ -n "${PROTECTED_VERSIONS}" ]] && ( echo "$t" | grep -E -q "$PROTECTED_VERSIONS" );then
debug "$t is protected, no skip"
return 1
fi
if ( echo "$t" | grep -E -q "$SKIPPED_TAGS" );then
ret=0
fi
Expand Down Expand Up @@ -557,7 +582,7 @@ get_image_tags() {
changed=
if [[ "x${ONLY_ONE_MINOR}" != "x" ]] && ( echo $n | grep -E -q "$ONLY_ONE_MINOR" );then
oomt=""
for ix in $(seq 0 30);do
for ix in $(seq 0 99);do
if ! ( echo "$atags" | grep -E -q "^$ix\." );then continue;fi
for j in $(seq 0 99);do
if ! ( echo "$atags" | grep -E -q "^$ix\.${j}\." );then continue;fi
Expand All @@ -580,10 +605,12 @@ get_image_tags() {
fi
if [[ -n "$selected" ]];then
for l in $(echo "$selected"|sed -e "$ d");do
if [[ -z $oomt ]];then
oomt="$l$"
else
oomt="$oomt|$l"
if [[ -z "${PROTECTED_VERSIONS}" ]] || ! ( echo "$n:$l" | grep "${PROTECTED_VERSIONS}" );then
if [[ -z $oomt ]];then
oomt="$l$"
else
oomt="$oomt|$l"
fi
fi
done
fi
Expand All @@ -596,7 +623,7 @@ get_image_tags() {
fi
if [[ -z ${SKIP_TAGS_REBUILD} ]];then
rm -f "$t"
filter_tags "$atags" > $t
filter_tags "$atags" > "$t"
fi
set -e
if [ -e "$t" ];then cat "$t";fi
Expand Down

0 comments on commit 1d557ab

Please sign in to comment.