ci: use PAT for cross-repo encryptid-sdk clone
CI/CD / deploy (push) Failing after 7s
Details
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:
parent
bcea66417c
commit
ac5dfa3749
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue