Docker fixes (#1)
Go / build (push) Successful in 8s
Go / Test (push) Successful in 16s
Go / build (pull_request) Successful in 1m46s
Go / Test (pull_request) Successful in 1m47s

Reviewed-on: phoenix/textsender-api#1
This commit was merged in pull request #1.
This commit is contained in:
2026-05-29 19:11:17 -04:00
parent 9dc4336761
commit 94b80aeecc
3 changed files with 12 additions and 7 deletions
+3 -2
View File
@@ -11,7 +11,8 @@ RUN mkdir -p -m 0700 ~/.ssh && \
ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts
# Configure Git to use SSH for GitHub
RUN git config --global url."ssh://git@git.kundeng.us".insteadOf "https://git.kundeng.us"
RUN git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/" && \
git config --global url."git@git.kundeng.us:".insteadOf "http://git.kundeng.us/"
# Set up the Go environment for private modules
ENV GOPRIVATE=git.kundeng.us
@@ -20,7 +21,7 @@ ENV GOPRIVATE=git.kundeng.us
# Copy go mod and sum files
COPY go.mod go.sum ./
RUN --mount=type=ssh mkdir src && \
RUN --mount=type=ssh \
go mod download
# Copy source code