Skip to content

Commit

Permalink
fix: get-all-images script (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-klimko authored Nov 19, 2024
1 parent abc6f2a commit 12e3f6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/cf-runtime/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/cf-runtime/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
6 changes: 4 additions & 2 deletions scripts/get-all-images.sh
Original file line number Diff line number Diff line change
@@ -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
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

0 comments on commit 12e3f6b

Please sign in to comment.