ci: use CR_PAT for docker login
This commit is contained in:
@@ -40,7 +40,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- 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
|
- name: Build and Push API
|
||||||
run: |
|
run: |
|
||||||
@@ -61,7 +61,7 @@ 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"
|
||||||
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 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
|
||||||
|
|||||||
Reference in New Issue
Block a user