Try checking-out with the prebuilt action
This commit is contained in:
parent
a9198c19c7
commit
33191d57d7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user