Skip to content

Commit

Permalink
fix:(docker, builder): git safe dir issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 16, 2023
1 parent 1597270 commit ecbeff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
if: ${{ contains(matrix.target, 'musl') && startsWith(matrix.os, 'ubuntu-latest') }}
run: |
docker buildx build -t builder -f ./manifest/docker/builder/${{ matrix.target }}/Dockerfile .
docker run -v "$(pwd)":/home/rust/src --rm -t builder cargo +nightly build --release --target ${{ matrix.target }}
docker run -v "$(pwd)":/home/rust/src --rm -t builder git config --global --add safe.directory '*' && cargo +nightly build --release --target ${{ matrix.target }}
- name: Cargo build
if: ${{ !contains(matrix.target, 'musl') || !startsWith(matrix.os, 'ubuntu-latest') }}
Expand Down

0 comments on commit ecbeff2

Please sign in to comment.