diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 3201212..6e6e8ed 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -51,19 +51,24 @@ jobs: run: | echo "Image pushed: gitea.scubbo.org/scubbo/edh-elo:${{ gitea.sha }}" - - name: Update Helm Chart - env: - GITEA_PASSWORD: ${{ env.GITEA_TOKEN }} + update-helm-chart: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + repository: scubbo/helm-charts + path: helm-charts + github-server-url: https://gitea.scubbo.org + + - name: Update run: | - echo "Hello this is some output" - #git config --global --unset credential.helper - git config --list - git clone -vvv https://gitea.scubbo.org/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 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