diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 51111e3..6abd91c 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -53,20 +53,20 @@ jobs: run: | echo "Image pushed: gitea.scubbo.org/scubbo/edh-elo:${{ gitea.sha }}" + - name: Checkout Helm Chart + uses: actions/checkout@v3 + with: + repository: scubbo/helm-charts + path: helm-charts + github-server-url: http://gitea-http:3000 + token: ${{ env.GITEA_TOKEN }} + - name: Update Helm Chart run: | - pushd /tmp - echo "GITEA_TOKEN: " - echo "${{ env.GITEA_TOKEN}}" - echo "${{ env.GITEA_TOKEN}}" | base64 | base64 - git clone http://scubbo:${{ env.GITEA_TOKEN }}@gitea-http:3000/scubbo/helm-charts.git cd helm-charts yq -i '.image.tag = "${{ gitea.sha }}"' charts/edh-elo/values.yaml git add -A git -c user.name="Imagebot" -c user.email="fake@scubbo.org" commit -m 'Update EDH ELO commit to "${{ gitea.sha }}"' - # git remote add origin-with-credentials https://scubbo:${GITEA_PASSWORD}@gitea.scubbo.org/scubbo/helm-charts.git - # git push origin-with-credentials main:main git push cd .. rm -rf helm-charts - popd