ci: use CR_PAT for docker login
CI/CD Pipeline / test (push) Successful in 10s
CI/CD Pipeline / build-push-deploy (push) Successful in 8s

This commit is contained in:
2026-07-04 18:32:07 +00:00
parent 2e74a7f4f1
commit df915dcf25
+2 -2
View File
@@ -40,7 +40,7 @@ jobs:
fetch-depth: 0
- name: Log in to Gitea Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin || echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.CR_PAT }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin || echo "${{ secrets.CR_PAT }}" | docker login git.khalilaliouich.com -u ${{ github.actor }} --password-stdin
- name: Build and Push API
run: |
@@ -61,7 +61,7 @@ jobs:
run: |
git config --global user.name "gitea-actions[bot]"
git config --global user.email "gitea-actions@gitea.local"
git remote set-url origin http://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@git.khalilaliouich.com/${{ github.repository }}
git remote set-url origin http://${{ github.actor }}:${{ secrets.CR_PAT }}@git.khalilaliouich.com/${{ github.repository }}
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