explain env thing
This commit is contained in:
parent
2fa6fd460d
commit
ead8fea7c7
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ volumes:
|
|||
nix:
|
||||
```
|
||||
|
||||
Note that the volume is named `woodpeck_nix` and not `nix` in the woodpacker agent configuration (`WOODPECKER_BACKEND_DOCKER_VOLUMES` environment declaration). It's because our `docker-compose.yml` is in a `woodpecker` folder and docker compose prefixes the created volumes with the name of the deployment, by default the parent folder name. The prefix is not needed elsewhere, as elsewhere, the resolution is dynamically done by compose. But the `WOODPECKER_BACKEND_DOCKER_VOLUMES` declaration is not part of compose, it will be used later by woodpecker when interacting directly with the Docker API.
|
||||
|
||||
Then, in your project `.woodpecker.yml`, you can seemlessly use nix and enjoy efficient and quick caching:
|
||||
|
||||
```yml
|
||||
|
|
Loading…
Reference in a new issue