Try checking-out with the prebuilt action
This commit is contained in:
parent
a9198c19c7
commit
33191d57d7
@ -51,19 +51,24 @@ 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: Update Helm Chart
|
update-helm-chart:
|
||||||
env:
|
runs-on: ubuntu-latest
|
||||||
GITEA_PASSWORD: ${{ env.GITEA_TOKEN }}
|
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: |
|
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
|
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 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 origin-with-credentials main:main
|
||||||
|
git push
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf helm-charts
|
rm -rf helm-charts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user