ci: use REPO_READ_TOKEN for cross-repo encryptid-sdk clone
CI/CD / deploy (push) Successful in 1m33s Details

REGISTRY_TOKEN lacks read:repository scope.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-01 13:04:42 -07:00
parent ac5dfa3749
commit ce5d59f45c
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://${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}@server:3000/jeffemmett/encryptid-sdk.git ../encryptid-sdk
git clone --depth 1 http://jeffemmett:${{ secrets.REPO_READ_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 }}