Skip to content

Commit cc29c66

Browse files
committed
Dockerfile: build pass on macOS
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent dd465ef commit cc29c66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ RUN --mount=type=bind,target=. \
109109
EOT
110110

111111
FROM base AS build-darwin
112+
ARG TARGETOS
112113
ARG TARGETARCH
113114
ARG TARGETVARIANT
114115
RUN --mount=type=bind,target=. \
@@ -121,6 +122,9 @@ RUN --mount=type=bind,target=. \
121122
xx-go install std
122123
xx-go build -ldflags "$(cat /tmp/.ldflags)" -o /out/docker-credential-osxkeychain-${TARGETARCH}${TARGETVARIANT} ./osxkeychain/cmd/
123124
xx-verify /out/docker-credential-osxkeychain-${TARGETARCH}${TARGETVARIANT}
125+
126+
xx-go build -ldflags "$(cat /tmp/.ldflags)" -o /out/docker-credential-pass-${TARGETOS}-${TARGETARCH}${TARGETVARIANT} ./pass/cmd/
127+
xx-verify /out/docker-credential-pass-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}
124128
EOT
125129

126130
FROM base AS build-windows

0 commit comments

Comments
 (0)