Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ jobs:
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq

# update image tags in values/credit.yaml
- name: Update image tags in values/credit.yaml
# update image tags in values/credit/credit.yaml
- name: Update image tags in values/credit/credit.yaml
run: |
cd helm-charts
yq -i '.image.tag = "${{ github.ref_name }}"' values/credit.yaml
yq -i '.image.webTag = "${{ github.ref_name }}"' values/credit.yaml
yq -i '.image.tag = "${{ github.ref_name }}"' values/credit/credit.yaml
yq -i '.image.webTag = "${{ github.ref_name }}"' values/credit/credit.yaml

# commit and push to a new branch, then open a PR for review
- name: Commit, push and create PR
Expand All @@ -166,13 +166,13 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b update/credit-${{ github.ref_name }}
git add values/credit.yaml
git add values/credit/credit.yaml
git commit -m "chore: update credit image tag to ${{ github.ref_name }}"
git push origin update/credit-${{ github.ref_name }}
HELM_REPO=$(echo "${{ vars.HELM_CHARTS_REPO }}" | sed 's/git@github.com://;s/\.git$//')
gh pr create \
--repo "${HELM_REPO}" \
--title "chore: update credit image tag to ${{ github.ref_name }}" \
--body "Automated PR: update \`values/credit.yaml\` image tags to \`${{ github.ref_name }}\` after Docker image build." \
--body "Automated PR: update \`values/credit/credit.yaml\` image tags to \`${{ github.ref_name }}\` after Docker image build." \
--base main \
--head update/credit-${{ github.ref_name }}
Loading