Remove unneeded targets from scripts

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-05-10 13:13:05 +02:00
parent 9f07cc9ab2
commit 8d0ffb2fa5
3 changed files with 13 additions and 33 deletions

View File

@ -23,22 +23,7 @@ set -e
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )"
# This list represents the distribution-architecture pairs that are actually published
# to the relevant repositories. This targets forwarded to the build-all-components script
# can be overridden by specifying command line arguments.
all=(
amazonlinux2-aarch64
amazonlinux2-x86_64
centos7-x86_64
centos8-aarch64
centos8-ppc64le
centos8-x86_64
debian10-amd64
opensuse-leap15.1-x86_64
ubuntu18.04-amd64
ubuntu18.04-arm64
ubuntu18.04-ppc64le
)
source "${SCRIPTS_DIR}"/utils.sh
if [[ $# -gt 0 ]]; then
targets=($*)

View File

@ -153,23 +153,6 @@ function sync() {
fi
}
# This list represents the distribution-architecture pairs that are actually published
# to the relevant repositories. This targets forwarded to the build-all-components script
# can be overridden by specifying command line arguments.
all=(
amazonlinux2-aarch64
amazonlinux2-x86_64
centos7-x86_64
centos8-aarch64
centos8-ppc64le
centos8-x86_64
debian10-amd64
opensuse-leap15.1-x86_64
ubuntu18.04-amd64
ubuntu18.04-arm64
ubuntu18.04-ppc64le
)
targets=${all[@]}
_current_branch=$(git -C ${PACKAGE_REPO_ROOT} rev-parse --abbrev-ref HEAD)

View File

@ -12,6 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# This list represents the distribution-architecture pairs that are actually published
# to the relevant repositories. This targets forwarded to the build-all-components script
# can be overridden by specifying command line arguments.
all=(
centos7-x86_64
centos8-aarch64
centos8-ppc64le
centos8-x86_64
ubuntu18.04-amd64
ubuntu18.04-arm64
ubuntu18.04-ppc64le
)
# package_type returns the packaging type (deb or rpm) for the specfied distribution.
# An error is returned if the ditribution is unsupported.