Skip to content

Commit

Permalink
feat: rust-cross git credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdward162 committed Mar 31, 2024
1 parent 75d9d67 commit eb9b835
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust-cross.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ ENV CC_x86_64_unknown_linux_musl=zig-x86_64-linux-musl
ENV CC_x86_64_unknown_linux_gnu=zig-x86_64-linux-gnu
ENV CC_aarch64_unknown_linux_musl=zig-aarch64-linux-musl
ENV CC_aarch64_unknown_linux_gnu=zig-aarch64-linux-gnu

# if using git dependencies over https this will support access tokens supplied with --mount=type=secret,id=git-password
RUN echo '[credential]\nhelper = "!f() { echo \\"username=git\\"; echo \\"password=$(cat /run/secrets/git-password)\\"; }; f"' >$HOME/.gitconfig

0 comments on commit eb9b835

Please sign in to comment.