Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasOnatsu committed Dec 13, 2024
1 parent 1813135 commit 52dc697
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/actions/build-action/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@
FROM ubuntu:22.04

ENV TZ=Europe/Helsinki
ENV LANG=en_US.utf8

RUN apt-get update && apt-get -y install curl xz-utils git

# Install nixos
COPY install_nix.sh /install_nix.sh
RUN /install_nix.sh
COPY ./installer.conf /tmp/installer.conf
#COPY install_nix.sh /install_nix.sh
#RUN /install_nix.sh

RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \
--extra-conf "$(cat /tmp/installer.conf)"\
--force\
--init none\
--no-confirm
RUN rm -f /tmp/installer.conf
ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin"

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]

9 changes: 9 additions & 0 deletions .github/actions/build-action/installer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extra-system-features = kvm
sandbox = false
show-trace = true
max-jobs = auto
cores = 0
substitute = true
substituters = https://cache.nixos.org https://nixpkgs.cachix.org https://nixpkgs-unfree.cachix.org https://nix-community.cachix.org
trusted-substituters = https://cache.nixos.org https://nixpkgs.cachix.org https://nixpkgs-unfree.cachix.org https://nix-community.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixpkgs.cachix.org-1:q91R6hxbwFvDqTSDKwDAV4T5PxqXGxswD8vhONFMeOE= nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=

0 comments on commit 52dc697

Please sign in to comment.