Skip to content

Commit

Permalink
ci: add app to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Oct 19, 2023
1 parent b6aa7d0 commit f9c9869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/apps/tasks/bump-image-digest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ci/apps/tasks/open-charts-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF >> ../body.md
# Bump ${APP} image
Expand Down

0 comments on commit f9c9869

Please sign in to comment.