add volume mount for nix #58

Merged
ahuston-0 merged 7 commits from feature/act-runner-volumes into main 2025-03-26 01:07:12 -04:00
3 changed files with 1 additions and 13 deletions
Showing only changes of commit d70903a84f - Show all commits

View File

@ -9,10 +9,6 @@ jobs:
health-check:
name: "Perform Nix flake checks"
runs-on: ubuntu-latest
container:
image: ubuntu:latest
volumes:
- "/nix:/nix"
steps:
- uses: DeterminateSystems/nix-installer-action@main
- name: Setup Attic cache
@ -28,10 +24,6 @@ jobs:
build-checks:
name: "Build nix outputs"
runs-on: ubuntu-latest
container:
image: ubuntu:latest
volumes:
- "/nix:/nix"
steps:
- uses: DeterminateSystems/nix-installer-action@main
- name: Setup Attic cache

View File

@ -24,7 +24,6 @@ in
"${act_config_path}:/config.yaml"
"${act_path}/stable-latest-main/data:/data"
"/var/run/docker.sock:/var/run/docker.sock"
"/nix:/nix"
];
environment = {
CONFIG_FILE = "/config.yaml";
@ -47,7 +46,6 @@ in
"${./act_config.yaml}:/config.yaml"
"${act_path}/stable-latest-1/data:/data"
"/var/run/docker.sock:/var/run/docker.sock"
"/nix:/nix"
];
environment = {
CONFIG_FILE = "/config.yaml";
@ -70,7 +68,6 @@ in
"${act_config_path}:/config.yaml"
"${act_path}/stable-latest-2/data:/data"
"/var/run/docker.sock:/var/run/docker.sock"
"/nix:/nix"
];
environment = {
CONFIG_FILE = "/config.yaml";

View File

@ -79,8 +79,7 @@ container:
# If you want to allow any volume, please use the following configuration:
# valid_volumes:
# - '**'
valid_volumes:
- /nix
valid_volumes: []
# overrides the docker client host with the specified one.
# If it's empty, act_runner will find an available docker host automatically.
# If it's "-", act_runner will find an available docker host automatically, but the docker host won't be mounted to the job containers and service containers.