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 4a8a521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 @@ -59,4 +59,6 @@ RUN mkdir /etc/nix && \
echo experimental-features = nix-command flakes > /etc/nix/nix.conf && \
echo substituters = https://cache.nixos.org >> /etc/nix/nix.conf

USER nixbld

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

0 comments on commit 4a8a521

Please sign in to comment.