Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquanghiep committed Aug 27, 2024
1 parent 9395051 commit fe61b99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ RUN apk add --no-cache --update openssh git make build-base linux-headers libc-d

# Ensure secrets are accessible
RUN --mount=type=secret,id=GO_PRIVATE_TOKEN \
sh -c 'set -e && \
TOKEN=$(cat /run/secrets/GO_PRIVATE_TOKEN) && \
git config --global url."https://${TOKEN}@github.com/".insteadOf "https://github.com/"'
git config --global url."https://${TOKEN}@github.com/".insteadOf "https://github.com/"


# Build
Expand Down

0 comments on commit fe61b99

Please sign in to comment.