2022-11-13 16:37:00 +00:00
|
|
|
|
---
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
2023-06-17 13:47:47 +01:00
|
|
|
|
name: check
|
2022-11-13 16:37:00 +00:00
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: lint
|
2024-02-04 10:29:07 +00:00
|
|
|
|
image: nixos/nix:2.20.1
|
2022-11-13 16:37:00 +00:00
|
|
|
|
commands:
|
2022-12-28 13:59:16 +00:00
|
|
|
|
- nix --extra-experimental-features 'nix-command flakes' fmt
|
2022-11-22 21:24:16 +00:00
|
|
|
|
- git diff --exit-code
|
2022-12-04 13:04:46 +00:00
|
|
|
|
|
|
|
|
|
- name: check
|
2024-02-04 10:29:07 +00:00
|
|
|
|
image: nixos/nix:2.20.1
|
2022-12-04 13:04:46 +00:00
|
|
|
|
commands:
|
|
|
|
|
- nix --extra-experimental-features 'nix-command flakes' flake check
|
2023-06-17 13:47:47 +01:00
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2024-02-07 23:46:13 +00:00
|
|
|
|
- pull_request
|
2022-11-13 16:37:00 +00:00
|
|
|
|
---
|
2024-04-01 17:45:08 +01:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
---
|
2022-11-13 16:37:00 +00:00
|
|
|
|
kind: signature
|
2024-02-07 23:46:13 +00:00
|
|
|
|
hmac: 5af72ec77460d7d914f9177c78febed763ea1a33dc0f0e39e7599bbf8f4ad987
|
2022-11-13 16:37:00 +00:00
|
|
|
|
|
|
|
|
|
...
|