Skip to content

Commit 87b0527

Browse files
committed
fix: add GIT_AUTH_TOKEN secret for docker build git clone [skip-version]
- Docker build fails with exit code 128 on git clone because the build context has no GitHub credentials - BuildKit has pre-defined GIT_AUTH_TOKEN secret for git authentication - Add secrets: GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} to both build-push-action steps (no Dockerfile changes needed)
1 parent c9c6916 commit 87b0527

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ jobs:
238238
PI_HEAD_SHA=${{ steps.config.outputs.sha }}
239239
LPB_VERSION=${{ steps.config.outputs.LPB_VERSION }}
240240
LPB_MAX_TOKENS_CONTEXT_RATIO=${{ steps.config.outputs.MAX_TOKENS }}
241+
secrets: |
242+
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}
241243
no-cache: ${{ github.event.inputs.no_cache == 'true' }}
242244
tags: |
243245
${{ env.IMAGE_NAME }}:cli
@@ -315,6 +317,8 @@ jobs:
315317
PI_HEAD_SHA=${{ steps.config.outputs.sha }}
316318
LPB_VERSION=${{ steps.config.outputs.LPB_VERSION }}
317319
LPB_MAX_TOKENS_CONTEXT_RATIO=${{ steps.config.outputs.MAX_TOKENS }}
320+
secrets: |
321+
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}
318322
no-cache: ${{ github.event.inputs.no_cache == 'true' }}
319323
tags: |
320324
${{ env.IMAGE_NAME }}:web

0 commit comments

Comments
 (0)