File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
developer/images/dependencies-update/hack/bin/tasks Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ run_task() {
29
29
DEPENDENCIES=" $WORKSPACE_DIR /shared/config/dependencies.sh"
30
30
echo " Update binaries" > " $COMMIT_MSG "
31
31
mapfile -t BINARIES < <(
32
- grep --extended-regexp " [A-Z]*_VERSION=" " $DEPENDENCIES " \
32
+ grep --extended-regexp " ^ *[^#]* * [A-Z]*_VERSION=" " $DEPENDENCIES " \
33
33
| sed " s:export *\(.*\)_VERSION=.*:\1:" \
34
34
| tr " [:upper:]" " [:lower:]" \
35
35
| sort
@@ -45,7 +45,12 @@ run_task() {
45
45
}
46
46
47
47
update_binary () {
48
+ if grep --ignore-case --quiet " ${BINARY} _VERSION=.*# *Freeze" " $DEPENDENCIES " ; then
49
+ # Ignore frozen dependencies
50
+ return
51
+ fi
48
52
echo " $BINARY "
53
+ unset VERSION
49
54
" get_${BINARY} _version"
50
55
BINARY=$( echo " $BINARY " | tr " [:lower:]" " [:upper:]" )
51
56
sed -i -e " s:\( ${BINARY} _VERSION\)=.*:\1=\" $VERSION \" :" " $DEPENDENCIES "
@@ -77,12 +82,8 @@ get_hadolint_version() {
77
82
}
78
83
79
84
get_hypershift_version () {
80
- # shellcheck source=shared/config/dependencies.sh
81
- source " $DEPENDENCIES "
82
- if [ " $HYPERSHIFT_VERSION " != " main" ]; then
83
- echo " Not implemented"
84
- exit 1
85
- fi
85
+ echo " [ERROR] Not implemented: get_hypershift_version"
86
+ exit 1
86
87
}
87
88
88
89
get_jq_version () {
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+ # To prevent a version to be upgraded by 'update_binaries.sh',
3
+ # add '# Freeze' after the export.
4
+ # E.g.:
5
+ # export FOOBAR_VERSION="1.2.3" # Freeze
2
6
export ARGOCD_VERSION=" v2.5.7"
3
7
export BITWARDEN_VERSION=" v2023.1.0"
4
8
export CHECKOV_VERSION=" 2.2.281"
5
9
export GO_VERSION=" 1.19.5"
6
10
export HADOLINT_VERSION=" v2.12.0"
7
- export HYPERSHIFT_VERSION=" main"
11
+ export HYPERSHIFT_VERSION=" main" # Freeze
8
12
export JQ_VERSION=" 1.6"
9
13
export KIND_VERSION=" v0.17.0"
10
14
export KUBECTL_VERSION=" v1.26.1"
You can’t perform that action at this time.
0 commit comments