File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,22 @@ if [[ -z "${to_version}" ]]; then
77 echo " $0 : The version to install must be passed as an argument"
88 exit 1
99fi
10+ to_collection=" $2 "
1011puppet_version=( ${to_version// ./ } )
1112puppet_major=${puppet_version[0]}
12- case $puppet_major in
13- 7)
14- to_collection=puppetcore7
15- ;;
16- 8)
17- to_collection=puppetcore8
18- ;;
19- * )
20- echo " $0 : Invalid version supplied" 1>&2
21- exit 1
22- esac
13+ if [[ -z " $to_collection " ]]; then
14+ case $puppet_major in
15+ 7)
16+ to_collection=puppetcore7
17+ ;;
18+ 8)
19+ to_collection=puppetcore8
20+ ;;
21+ * )
22+ echo " $0 : Invalid version supplied" 1>&2
23+ exit 1
24+ esac
25+ fi
2326
2427export PT__installdir=../
2528export PT_version=${to_version}
Original file line number Diff line number Diff line change 2727cd " $( dirname " $0 " ) /../.."
2828platforms=${1:- rocky}
2929version=${2:- 8.11.0}
30+ collection=${3:- puppetcore8}
3031for platform in ${platforms// ,/ }
3132do
3233 case $platform in
7071 # Add "--progress plain" for complete build output
7172 docker build --rm -f " ${dockerfile} " . -t pa-dev:$platform .install \
7273 --build-arg BASE_IMAGE=" ${base_image} "
73- docker run -e PUPPET_FORGE_TOKEN --rm -ti pa-dev:$platform .install " ${version} "
74+ docker run -e PUPPET_FORGE_TOKEN --rm -ti pa-dev:$platform .install " ${version} " " ${collection} "
7475done
7576echo Complete
You can’t perform that action at this time.
0 commit comments