forked from fediversity/fediversity
- `--store` as per https://blog.kotatsu.dev/posts/2023-04-21-woodpecker-nix-caching/ - `--eval-store` as per https://kevincox.ca/2022/01/02/nix-in-docker-caching/ mount store rm kvm bash -> sh
25 lines
858 B
YAML
25 lines
858 B
YAML
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/refs/heads/main/pipeline/frontend/yaml/linter/schema/schema.json
|
|
|
|
when:
|
|
- event: manual
|
|
# - event: cron
|
|
# cron: updater
|
|
|
|
steps:
|
|
- name: lockfile
|
|
image: nixos/nix
|
|
volumes:
|
|
- /nix:/mnt/nix:ro
|
|
commands:
|
|
- nix-shell --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --run "npins --verbose update"
|
|
# - name: Create PR
|
|
# uses: https://github.com/KiaraGrouwstra/gitea-create-pull-request@f9f80aa5134bc5c03c38f5aaa95053492885b397
|
|
# with:
|
|
# remote-instance-api-version: v1
|
|
# token: "$DEPLOY_KEY"
|
|
# branch: npins-update
|
|
# commit-message: "npins: update sources"
|
|
# title: "npins: update sources"
|
|
environment:
|
|
DEPLOY_KEY:
|
|
from_secret: deploy_key
|