42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
skip_clone: true
|
|
|
|
pipeline:
|
|
clone:
|
|
image: nixpkgs/nix-flakes
|
|
commands:
|
|
- git clone https://dmoonfire:$GITEA_TOKEN@src.mfgames.com/$DRONE_REPO.git .
|
|
- git checkout $DRONE_COMMIT
|
|
secrets:
|
|
- gitea_token
|
|
when:
|
|
event: [manual, pull_request, push]
|
|
|
|
build:
|
|
image: nixpkgs/nix-flakes
|
|
commands:
|
|
- nix develop --command just build
|
|
volumes:
|
|
- woodpecker-nix-store:/nix
|
|
when:
|
|
event: [manual, pull_request, push]
|
|
|
|
test:
|
|
image: nixpkgs/nix-flakes
|
|
commands:
|
|
- nix develop --command just test
|
|
volumes:
|
|
- woodpecker-nix-store:/nix
|
|
when:
|
|
event: [manual, pull_request, push]
|
|
|
|
release:
|
|
image: nixpkgs/nix-flakes
|
|
commands:
|
|
- nix develop --command just release
|
|
volumes:
|
|
- woodpecker-nix-store:/nix
|
|
secrets:
|
|
- gitea_token
|
|
when:
|
|
event: [manual, push]
|
|
branch: main
|