nixos/.drone.yml
Jake Hillion 1dcbf0c755
Some checks failed
continuous-integration/drone/push Build is failing
flake: add automatic update PRs
2024-04-01 18:43:46 +01:00

54 lines
1.1 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
kind: pipeline
type: docker
name: check
steps:
- name: lint
image: nixos/nix:2.20.1
commands:
- nix --extra-experimental-features 'nix-command flakes' fmt
- git diff --exit-code
- name: check
image: nixos/nix:2.20.1
commands:
- nix --extra-experimental-features 'nix-command flakes' flake check
trigger:
event:
exclude:
- tag
- pull_request
---
kind: pipeline
type: docker
name: update
steps:
- name: update inputs
image: nixos/nix:2.20.1
environment:
GIT_AUTHOR_NAME: Drone
GIT_AUTHOR_EMAIL: drone@mg.hillion.co.uk
GITEA_SERVER_TOKEN:
from_secret: GITEA_TOKEN
commands:
- mkdir -p ~/.config/nix
- echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf
- git config credential.helper '!f() { sleep 1; echo "username=drone"; echo "password=${GITEA_SERVER_TOKEN}"; }; f'
- scripts/update_inputs.sh
trigger:
branch:
# - main
event:
- cron
- push
---
kind: signature
hmac: 5af72ec77460d7d914f9177c78febed763ea1a33dc0f0e39e7599bbf8f4ad987
...