feat: auto-update charts deployment on build
Some checks failed
Build & Release / build (push) Has been cancelled
Some checks failed
Build & Release / build (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user