@@ -34,14 +34,6 @@ if [[ -z "${GITHUB_SHA}" ]]; then
3434 exit 1
3535fi
3636
37- BIONIC_TAGS=(
38- " next-bionic"
39- " v${PW_VERSION} -bionic"
40- )
41- if [[ " $RELEASE_CHANNEL " == " stable" ]]; then
42- BIONIC_TAGS+=(" bionic" )
43- fi
44-
4537FOCAL_TAGS=(
4638 " next"
4739 " sha-${GITHUB_SHA} "
@@ -55,6 +47,15 @@ if [[ "$RELEASE_CHANNEL" == "stable" ]]; then
5547 FOCAL_TAGS+=(" v${PW_VERSION} " )
5648fi
5749
50+ JAMMY_TAGS=(
51+ " next-jammy"
52+ " v${PW_VERSION} -jammy"
53+ )
54+
55+ if [[ " $RELEASE_CHANNEL " == " stable" ]]; then
56+ JAMMY_TAGS+=(" jammy" )
57+ fi
58+
5859tag_and_push () {
5960 local source=" $1 "
6061 local target=" $2 "
@@ -66,12 +67,12 @@ tag_and_push() {
6667publish_docker_images_with_arch_suffix () {
6768 local FLAVOR=" $1 "
6869 local TAGS=()
69- if [[ " $FLAVOR " == " bionic" ]]; then
70- TAGS=(" ${BIONIC_TAGS[@]} " )
71- elif [[ " $FLAVOR " == " focal" ]]; then
70+ if [[ " $FLAVOR " == " focal" ]]; then
7271 TAGS=(" ${FOCAL_TAGS[@]} " )
72+ elif [[ " $FLAVOR " == " jammy" ]]; then
73+ TAGS=(" ${JAMMY_TAGS[@]} " )
7374 else
74- echo " ERROR: unknown flavor - $FLAVOR . Must be either 'bionic ' or 'focal '"
75+ echo " ERROR: unknown flavor - $FLAVOR . Must be either 'focal ' or 'jammy '"
7576 exit 1
7677 fi
7778 local ARCH=" $2 "
@@ -92,12 +93,12 @@ publish_docker_images_with_arch_suffix() {
9293publish_docker_manifest () {
9394 local FLAVOR=" $1 "
9495 local TAGS=()
95- if [[ " $FLAVOR " == " bionic" ]]; then
96- TAGS=(" ${BIONIC_TAGS[@]} " )
97- elif [[ " $FLAVOR " == " focal" ]]; then
96+ if [[ " $FLAVOR " == " focal" ]]; then
9897 TAGS=(" ${FOCAL_TAGS[@]} " )
98+ elif [[ " $FLAVOR " == " jammy" ]]; then
99+ TAGS=(" ${JAMMY_TAGS[@]} " )
99100 else
100- echo " ERROR: unknown flavor - $FLAVOR . Must be either 'bionic ' or 'focal '"
101+ echo " ERROR: unknown flavor - $FLAVOR . Must be either 'focal ' or 'jammy '"
101102 exit 1
102103 fi
103104
@@ -119,3 +120,7 @@ publish_docker_manifest () {
119120publish_docker_images_with_arch_suffix focal amd64
120121publish_docker_images_with_arch_suffix focal arm64
121122publish_docker_manifest focal amd64 arm64
123+
124+ publish_docker_images_with_arch_suffix jammy amd64
125+ publish_docker_images_with_arch_suffix jammy arm64
126+ publish_docker_manifest jammy amd64 arm64
0 commit comments