56 lines
1.4 KiB
YAML
56 lines
1.4 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_BRANCH
|
|
- git reset --hard $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]
|
|
|
|
publish:
|
|
image: nixpkgs/nix-flakes
|
|
commands:
|
|
- nix develop --command just release-nuget
|
|
volumes:
|
|
- woodpecker-nix-store:/nix
|
|
secrets:
|
|
- gitea_token
|
|
when:
|
|
event: [manual, push]
|
|
branch: main
|
|
|
|
tag:
|
|
image: nixpkgs/nix-flakes
|
|
commands:
|
|
- nix develop --command just release-tag
|
|
volumes:
|
|
- woodpecker-nix-store:/nix
|
|
secrets:
|
|
- gitea_token
|
|
when:
|
|
event: [manual, push]
|
|
branch: main
|