feat: auto-update charts deployment on build
Some checks failed
Build & Release / build (push) Has been cancelled

This commit is contained in:
Ryan Moon
2026-04-03 15:27:16 -05:00
parent b66972a128
commit fe1af1a021

View File

@@ -79,6 +79,17 @@ jobs:
git pull --rebase origin main
git push origin main
- name: Update charts
run: |
git clone https://lunarfront-bot:${{ secrets.BOT_TOKEN }}@$GIT_REMOTE/ryan/lunarfront-charts.git /tmp/charts
cd /tmp/charts
sed -i "s|image: registry.digitalocean.com/lunarfront/manager:.*|image: registry.digitalocean.com/lunarfront/manager:${{ steps.version.outputs.version }}|" manager/deployment.yaml
git config user.name "lunarfront-bot"
git config user.email "bot@lunarfront.tech"
git add manager/deployment.yaml
git commit -m "chore: update manager image to v${{ steps.version.outputs.version }}"
git push origin main
- name: Logout
if: always()
run: docker logout registry.digitalocean.com