Skip to content

Commit

Permalink
fix: Debugging segfault issue on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed May 22, 2024
1 parent d944354 commit 9dde981
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s
# Build the binary.
RUN go build -mod=readonly -v -o helmfile-nix .

FROM --platform=${BUILDPLATFORM:-linux/amd64} nixos/nix:2.22.0 AS nix
FROM --platform=${BUILDPLATFORM:-linux/amd64} nixos/nix:2.18.0 AS nix

RUN nix build --extra-experimental-features nix-command --extra-experimental-features flakes nixpkgs#nixStatic

Expand Down Expand Up @@ -54,9 +54,11 @@ RUN apk add --update --no-cache bash curl git yq && \

VOLUME /nix
RUN mkdir /etc/nix && \
addgroup -g 1000 nixbld && \
adduser -u 1000 -G nixbld -D nixbld && \
# addgroup -g 1000 nixbld && \
# adduser -u 1000 -G nixbld -D nixbld && \
echo experimental-features = nix-command flakes > /etc/nix/nix.conf && \
echo substituters = https://cache.nixos.org >> /etc/nix/nix.conf
# echo substituters = https://cache.nixos.org >> /etc/nix/nix.conf
echo build-users-group = root


ENTRYPOINT ["/usr/local/bin/helmfile-nix" ]

0 comments on commit 9dde981

Please sign in to comment.