ci: use PAT for cross-repo encryptid-sdk clone
CI/CD / deploy (push) Failing after 7s Details

github.token is repo-scoped; use REGISTRY_TOKEN PAT for
sibling repo access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-01 12:30:27 -07:00
parent bcea66417c
commit ac5dfa3749
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ jobs:
- name: Build and push image
run: |
git clone --depth 1 http://token:${{ github.token }}@server:3000/jeffemmett/encryptid-sdk.git ../encryptid-sdk
git clone --depth 1 http://${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}@server:3000/jeffemmett/encryptid-sdk.git ../encryptid-sdk
docker build -f Dockerfile -t ${{ env.IMAGE }}:${{ env.IMAGE_TAG }} -t ${{ env.IMAGE }}:latest ..
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
docker push ${{ env.IMAGE }}:${{ env.IMAGE_TAG }}