Checkout with action using correct token
Some checks failed
Publish / build-and-push (push) Failing after 3m53s
Some checks failed
Publish / build-and-push (push) Failing after 3m53s
This commit is contained in:
parent
f2d01caff3
commit
be9a4272d7
@ -53,20 +53,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Image pushed: gitea.scubbo.org/scubbo/edh-elo:${{ gitea.sha }}"
|
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
|
- name: Update Helm Chart
|
||||||
run: |
|
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
|
cd helm-charts
|
||||||
yq -i '.image.tag = "${{ gitea.sha }}"' charts/edh-elo/values.yaml
|
yq -i '.image.tag = "${{ gitea.sha }}"' charts/edh-elo/values.yaml
|
||||||
git add -A
|
git add -A
|
||||||
git -c user.name="Imagebot" -c user.email="fake@scubbo.org" commit -m 'Update EDH ELO commit to "${{ gitea.sha }}"'
|
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
|
git push
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf helm-charts
|
rm -rf helm-charts
|
||||||
popd
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user