2024-09-30 20:07:46 +00:00
|
|
|
name: 'Get image ready to run nix jobs'
|
|
|
|
description: 'Update apt repositories and installing sudo'
|
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2024-10-01 08:56:22 +00:00
|
|
|
- name: 'Installing nix on Docker runner'
|
2024-09-30 20:07:46 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
apt update
|
2024-10-04 11:26:07 +00:00
|
|
|
apt upgrade -y
|
|
|
|
apt install -y sudo
|
2024-09-30 20:18:44 +00:00
|
|
|
- uses: https://github.com/cachix/install-nix-action@v29
|
|
|
|
with:
|
2024-10-01 12:06:32 +00:00
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2024-09-30 20:18:44 +00:00
|
|
|
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
|
2024-10-01 12:01:14 +00:00
|
|
|
run: nix --version
|