actions/docker_nix/action.yml
Eoghan Conlon 1e9c0e4d79 Reverting back to hard code version
Signed-off-by: Eoghan Conlon <eoghanconlon73@skynet.ie>
2024-10-01 13:06:32 +01:00

24 lines
No EOL
925 B
YAML

name: 'Get image ready to run nix jobs'
description: 'Update apt repositories and installing sudo'
inputs:
nix_path:
description: 'Nix channel to be followed'
required: false
default: 'nixpkgs=channel:nixos-unstable'
runs:
using: 'composite'
steps:
- name: 'Installing nix on Docker runner'
shell: bash
run: |
apt update
apt upgrade
apt install sudo
- uses: https://github.com/cachix/install-nix-action@v29
with:
nix_path: nixpkgs=channel:nixos-unstable
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=
substituters = https://nix-cache.skynet.ie/skynet-cache https://hydra.iohk.io https://cache.nixos.org/
- shell: bash
run: nix --version