@@ -44,6 +44,13 @@ FOCAL_TAGS=(
4444 " next-focal"
4545)
4646
47+ JAMMY_TAGS=(
48+ " next-jammy"
49+ )
50+ if [[ " $RELEASE_CHANNEL " == " stable" ]]; then
51+ JAMMY_TAGS+=(" jammy" )
52+ fi
53+
4754if [[ " $RELEASE_CHANNEL " == " stable" ]]; then
4855 FOCAL_TAGS+=(" latest" )
4956 FOCAL_TAGS+=(" focal" )
@@ -66,8 +73,10 @@ publish_docker_images_with_arch_suffix() {
6673 TAGS=(" ${BIONIC_TAGS[@]} " )
6774 elif [[ " $FLAVOR " == " focal" ]]; then
6875 TAGS=(" ${FOCAL_TAGS[@]} " )
76+ elif [[ " $FLAVOR " == " jammy" ]]; then
77+ TAGS=(" ${JAMMY_TAGS[@]} " )
6978 else
70- echo " ERROR: unknown flavor - $FLAVOR . Must be either 'bionic' or 'focal '"
79+ echo " ERROR: unknown flavor - $FLAVOR . Must be either 'bionic', 'focal', or 'jammy '"
7180 exit 1
7281 fi
7382 local ARCH=" $2 "
@@ -92,8 +101,10 @@ publish_docker_manifest () {
92101 TAGS=(" ${BIONIC_TAGS[@]} " )
93102 elif [[ " $FLAVOR " == " focal" ]]; then
94103 TAGS=(" ${FOCAL_TAGS[@]} " )
104+ elif [[ " $FLAVOR " == " jammy" ]]; then
105+ TAGS=(" ${JAMMY_TAGS[@]} " )
95106 else
96- echo " ERROR: unknown flavor - $FLAVOR . Must be either 'bionic' or 'focal '"
107+ echo " ERROR: unknown flavor - $FLAVOR . Must be either 'bionic', 'focal', or 'jammy '"
97108 exit 1
98109 fi
99110
@@ -112,9 +123,16 @@ publish_docker_manifest () {
112123 done
113124}
114125
126+ # Bionic
115127publish_docker_images_with_arch_suffix bionic amd64
116128publish_docker_manifest bionic amd64
117129
130+ # Focal
118131publish_docker_images_with_arch_suffix focal amd64
119132publish_docker_images_with_arch_suffix focal arm64
120133publish_docker_manifest focal amd64 arm64
134+
135+ # Jammy
136+ publish_docker_images_with_arch_suffix jammy amd64
137+ publish_docker_images_with_arch_suffix jammy arm64
138+ publish_docker_manifest jammy amd64 arm64
0 commit comments