mfgames-cil/.woodpecker.yml
D. Moonfire 62bab4a6f8
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci: pull tags while cloning
2023-07-23 13:29:24 -05:00

57 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
- git pull --tags
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