mfgames-cil/.woodpecker.yml
D. Moonfire f0057cc151
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci: use DRONE_BRANCH and DRONE_COMMIT
2023-07-23 12:34:06 -05:00

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