From f9c98697d5b680a153147a9736ed3c4f8afa285c Mon Sep 17 00:00:00 2001 From: bodymindarts Date: Thu, 19 Oct 2023 15:49:02 +0200 Subject: [PATCH] ci: add app to metadata --- ci/apps/tasks/bump-image-digest.sh | 2 +- ci/apps/tasks/open-charts-pr.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/apps/tasks/bump-image-digest.sh b/ci/apps/tasks/bump-image-digest.sh index d2381a7123..90b764768c 100755 --- a/ci/apps/tasks/bump-image-digest.sh +++ b/ci/apps/tasks/bump-image-digest.sh @@ -9,7 +9,7 @@ pushd charts-repo yq -i e "${YAML_PATH} = strenv(digest)" "./charts/${CHART}/values.yaml" -sed -i "s|\(${YAML_PATH##*.}: \"${digest}\"\).*$|\1 # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=${ref}|g" "./charts/${CHART}/values.yaml" +sed -i "s|\(${YAML_PATH##*.}: \"${digest}\"\).*$|\1 # METADATA:: repository=https://github.com/GaloyMoney/galoy;commit_ref=${ref};app=${APP};|g" "./charts/${CHART}/values.yaml" if [[ -z $(git config --global user.email) ]]; then diff --git a/ci/apps/tasks/open-charts-pr.sh b/ci/apps/tasks/open-charts-pr.sh index a45c6689ac..22e85ff1cd 100755 --- a/ci/apps/tasks/open-charts-pr.sh +++ b/ci/apps/tasks/open-charts-pr.sh @@ -14,7 +14,7 @@ old_digest=$(yq e "${YAML_PATH}" "./charts/${CHART}/values.yaml") github_url=$(grep "digest: \"${old_digest}\"" "./charts/${CHART}/values.yaml" \ | sed 's|digest:.*:: repository=\(.*\);.*$|\1|' | tr -d ' \n') old_ref=$(grep "digest: \"${old_digest}\"" "./charts/${CHART}/values.yaml" \ - | sed 's|digest:.*::.*;commit_ref=\(.*\)$|\1|' | tr -d ' \n') + | sed 's|digest:.*::.*;commit_ref=\(.*\).*$|\1|' | tr -d ' \n') cat <> ../body.md # Bump ${APP} image