From 12e3f6bd57138ad5f65efa055648103ae0db0163 Mon Sep 17 00:00:00 2001 From: mikhail-klimko Date: Tue, 19 Nov 2024 12:27:50 +0300 Subject: [PATCH] fix: get-all-images script (#527) --- charts/cf-runtime/Chart.yaml | 6 +++--- charts/cf-runtime/README.md | 2 +- scripts/get-all-images.sh | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/charts/cf-runtime/Chart.yaml b/charts/cf-runtime/Chart.yaml index 38ef735d..66ed8816 100644 --- a/charts/cf-runtime/Chart.yaml +++ b/charts/cf-runtime/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A Helm chart for Codefresh Runner name: cf-runtime -version: 7.1.2 +version: 7.1.3 keywords: - codefresh - runner @@ -17,8 +17,8 @@ annotations: artifacthub.io/containsSecurityUpdates: "false" # Supported kinds: `added`, `changed`, `deprecated`, `removed`, `fixed`, `security`: artifacthub.io/changes: | - - kind: security - description: "Misc security updates (kubectl and codefresh-shell images)" + - kind: fixed + description: "Fix get-all-images.sh script" dependencies: - name: cf-common repository: oci://quay.io/codefresh/charts diff --git a/charts/cf-runtime/README.md b/charts/cf-runtime/README.md index 8eab85c8..518a3388 100644 --- a/charts/cf-runtime/README.md +++ b/charts/cf-runtime/README.md @@ -1,6 +1,6 @@ ## Codefresh Runner -![Version: 7.1.2](https://img.shields.io/badge/Version-7.1.2-informational?style=flat-square) +![Version: 7.1.3](https://img.shields.io/badge/Version-7.1.3-informational?style=flat-square) Helm chart for deploying [Codefresh Runner](https://codefresh.io/docs/docs/installation/codefresh-runner/) to Kubernetes. diff --git a/scripts/get-all-images.sh b/scripts/get-all-images.sh index 8ddbdf84..2b1a8232 100755 --- a/scripts/get-all-images.sh +++ b/scripts/get-all-images.sh @@ -1,6 +1,8 @@ MYDIR=$(dirname $0) CHARTDIR="${MYDIR}/../charts/cf-runtime" -VALUESFILE="../charts/cf-runtime/.ci/values-ci.yaml" +VALUESFILE="${MYDIR}/../charts/cf-runtime/.ci/values-ci.yaml" OUTPUTFILE=$1 helm dependency update $CHARTDIR -helm template --values $VALUESFILE --set global.runtimeName="dummy" $CHARTDIR | grep -E 'image: | dindImage:' | awk -F ': ' '{print $2}' | tr -d '"' | uniq > $OUTPUTFILE \ No newline at end of file +helm template --values $VALUESFILE --set global.runtimeName="dummy" $CHARTDIR | grep -E 'image: | dindImage:' | awk -F ': ' '{print $2}' | tr -d '"' | tr -d "'" | uniq > $OUTPUTFILE + +cat $OUTPUTFILE | tr '@' '\n' | awk 'NR % 2 == 1' | tee $OUTPUTFILE