Checkout with action using correct token
Some checks failed
Publish / build-and-push (push) Failing after 3m53s

This commit is contained in:
Jack Jackson 2025-04-06 23:07:25 -07:00
parent f2d01caff3
commit be9a4272d7

View File

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