porthole/tools/deployment/002-build-charts.sh
Arina Stebenkova f89395dc9c Refactor values_overrides for porthole charts
* Switch to using the OSH plugin for processing values_overrides.
* Move override files into a separate directory, aligning with
  the structure of the openstack-helm-infra repository.
* Clean up and streamline related Bash scripts.

Change-Id: Ie14cb5c4885bff0572aa57eab18b690593f6c2f3
2025-03-20 16:34:16 +02:00

17 lines
395 B
Bash
Executable File

#!/bin/bash
: "${PORTHOLE_PATH:="../porthole"}"
cd "${PORTHOLE_PATH}" || exit
mkdir -p artifacts
make all || { echo "[!] Failed to build Helm charts. Aborting..."; exit 1; }
cd charts || exit
for i in $(find . -maxdepth 1 -name "*.tgz" -print | sed -e 's/\-[0-9.]*\.tgz//'| cut -d / -f 2 | sort)
do
find . -name "$i-[0-9.]*.tgz" -print -exec cp -av {} "../artifacts/$i.tgz" \;
done