|
|
|
@ -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"
|
|
|
|
|
- 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
|