From 867f41a2f566e4efd195473140d840378b10dd7e Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 13 Jun 2025 21:10:40 +0000 Subject: [PATCH] Update '.gitea/workflows/build-push.yaml' --- .gitea/workflows/build-push.yaml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index 1c531d9..496ee0a 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -36,6 +36,29 @@ jobs: push: true tags: registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }} platforms: linux/arm64 - - name: Print Image ID - #run: echo "The image ID is: ${{ steps.short-sha.outputs.short-sha }}" - run: "test" \ No newline at end of file + - name: Checkout repository + uses: actions/checkout@v4 + with: + repo: https://gitea.wagshome.duckdns.org/wagshome/rgbboard.git + ref: master as # or the branch you want to modify + token: ${{ secrets.runner_deploy }} + path: repo + + - name: Set up Git + run: | + git config --global user.name "Gitea Actions" + git config --global user.email "actions@nope.com" + + - name: Install yq + uses: jtopjian/yq@v2.0.0 + + - name: Update values.yaml + run: | + yq e -i '.image.tag = "my-image:${{ steps.short_sha.outputs.short_sha }}"' rgbboard/rgbboard/values.yaml + + - name: Commit and Push changes + run: | + cd repo + git add . + git commit -m "Update image to ${{ steps.short_sha.outputs.short_sha }}" + git push \ No newline at end of file