From 4936315a956302ceae2b7f831e317c7bb08f7855 Mon Sep 17 00:00:00 2001 From: khalil Date: Sat, 4 Jul 2026 18:40:11 +0000 Subject: [PATCH] ci: explicit git push with CR_PAT --- .gitea/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index be4b43d..752d286 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -38,7 +38,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.CR_PAT }} - name: Log in to Gitea Container Registry run: echo "${{ secrets.CR_PAT }}" | docker login https://git.khalilaliouich.com -u ${{ github.actor }} --password-stdin @@ -62,6 +61,8 @@ jobs: run: | git config --global user.name "gitea-actions[bot]" 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 commit -m "chore: deploy version ${{ github.sha }} [skip ci]" || echo "No changes to commit" git push origin main