ci: explicit git push with CR_PAT
CI/CD Pipeline / test (push) Successful in 8s
CI/CD Pipeline / build-push-deploy (push) Successful in 7s

This commit is contained in:
2026-07-04 18:40:11 +00:00
parent 7dd98100a1
commit 4936315a95
+2 -1
View File
@@ -38,7 +38,6 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
token: ${{ secrets.CR_PAT }}
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
run: echo "${{ secrets.CR_PAT }}" | docker login https://git.khalilaliouich.com -u ${{ github.actor }} --password-stdin run: echo "${{ secrets.CR_PAT }}" | docker login https://git.khalilaliouich.com -u ${{ github.actor }} --password-stdin
@@ -62,6 +61,8 @@ jobs:
run: | run: |
git config --global user.name "gitea-actions[bot]" git config --global user.name "gitea-actions[bot]"
git config --global user.email "gitea-actions@gitea.local" git config --global user.email "gitea-actions@gitea.local"
# Force the push to use the PAT token explicitely
git remote set-url origin http://${{ github.actor }}:${{ secrets.CR_PAT }}@gitea-http.gitea.svc.cluster.local:3000/${{ github.repository }}.git
git add api-deployment.yaml frontend-deployment.yaml git add api-deployment.yaml frontend-deployment.yaml
git commit -m "chore: deploy version ${{ github.sha }} [skip ci]" || echo "No changes to commit" git commit -m "chore: deploy version ${{ github.sha }} [skip ci]" || echo "No changes to commit"
git push origin main git push origin main