File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2- set -e
3-
2+ # Creates and pushes manifests for flavors
3+ #
44# Usage: ./create-manifest.sh <flavor> <registry_image> <mirror_image> <mirror_enable_bool>
55# Example: ./create-manifest.sh alpine ghcr.io/owner/repo docker.io/owner/repo true
66
7+ set -e
8+
9+
710FLAVOR=" $1 "
811REGISTRY_IMAGE=" $2 "
912MIRROR_IMAGE=" $3 "
2528ARCHS=" amd64 arm64"
2629
2730# Add s390x for Ubuntu flavors
28- if [[ " $FLAVOR " == " bionic" || " $FLAVOR " == " focal" || " $FLAVOR " == " jammy" || " $FLAVOR " == " noble" ]]; then
29- ARCHS=" $ARCHS s390x"
30- fi
31+ UBUNTU_FLAVORS=(" bionic" " focal" " jammy" " noble" )
32+ for ub_flavor in " ${UBUNTU_FLAVORS[@]} " ; do
33+ if [[ " $FLAVOR " == " $ub_flavor " ]]; then
34+ ARCHS=" $ARCHS s390x"
35+ break
36+ fi
37+ done
3138
3239# Fedora only supports amd64 in this setup
3340if [[ " $FLAVOR " == " fedora" ]]; then
You can’t perform that action at this time.
0 commit comments