36 lines
965 B
YAML
36 lines
965 B
YAML
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
tags: true
|
|
|
|
pipeline:
|
|
build:
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
commands:
|
|
- nix develop --command scripts/build.sh
|
|
when:
|
|
event: [push, pull_request, tag]
|
|
tag: v*
|
|
|
|
test:
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
commands:
|
|
- nix develop --command scripts/test.sh
|
|
when:
|
|
event: [push, pull_request]
|
|
#paths:
|
|
# - ./**/*test-result.xml
|
|
# - ./coverage/Cobertura.xml
|
|
# - ./coverage/Summary.*
|
|
# - ./**/*.nupkg
|
|
|
|
release-main:
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
commands:
|
|
- nix develop --command scripts/release.sh
|
|
secrets:
|
|
- gitea_token
|
|
when:
|
|
event: push
|
|
branch: main
|