Adding action to add nix capabilities to docker runner #2

Open
eoghanconlon73 wants to merge 20 commits from eoghanconlon73/actions:main into main
Showing only changes of commit 294eda4fdd - Show all commits

View file

@ -1,10 +1,10 @@
name: 'Get image ready to run nix jobs' name: 'Get image ready to run nix jobs'
description: 'Update apt repositories and installing sudo' description: 'Update apt repositories and installing sudo'
inputs: inputs:
nix-version: nix_path:
description: 'Nix version to be installed' description: 'Nix channel to be followed'
required: false required: false
default: nixos-unstable default: 'nixpkgs=channel:nixos-unstable'
runs: runs:
using: 'composite' using: 'composite'
steps: steps:
@ -16,7 +16,7 @@ runs:
apt install sudo apt install sudo
- uses: https://github.com/cachix/install-nix-action@v29 - uses: https://github.com/cachix/install-nix-action@v29
with: with:
nix_path: ${{ inputs.nix-version }} nix_path: ${{ inputs.nix_path }}
extra_nix_config: | extra_nix_config: |
trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://nix-cache.skynet.ie/skynet-cache https://hydra.iohk.io https://cache.nixos.org/ substituters = https://nix-cache.skynet.ie/skynet-cache https://hydra.iohk.io https://cache.nixos.org/