Skip to content

Commit 439037b

Browse files
committed
include token
1 parent 3fed219 commit 439037b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build-cli.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
uses: crazy-max/ghaction-github-runtime@v3
3737
- name: Build sources
3838
run: |
39-
docker buildx build --cache-to type=gha,mode=max,scope=${{ matrix.platform }} --cache-from type=gha,scope=${{ matrix.platform }} --pull --load --platform linux/${{ matrix.platform }} --target cli-base-alpine -t builder .
39+
echo "${{ secrets.GITHUB_TOKEN }}" > TOKEN
40+
docker buildx build --secret id=github-token,src=./TOKEN --cache-to type=gha,mode=max,scope=${{ matrix.platform }} --cache-from type=gha,scope=${{ matrix.platform }} --pull --load --platform linux/${{ matrix.platform }} --target cli-base-alpine -t builder .
4041
- name: Copy build
4142
run: |
4243
docker create --name builder builder

0 commit comments

Comments
 (0)