2022-07-14 18:42:22 +00:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
settings:
|
|
|
|
tags: true
|
2022-07-14 18:35:12 +00:00
|
|
|
|
2022-07-14 18:42:22 +00:00
|
|
|
pipeline:
|
2022-07-13 22:54:36 +00:00
|
|
|
build:
|
|
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
|
|
commands:
|
|
|
|
- nix develop --command scripts/build.sh
|
|
|
|
- nix develop --command scripts/test.sh
|
2022-07-15 05:49:11 +00:00
|
|
|
when:
|
|
|
|
event: [push, pull_request]
|
2022-07-13 22:54:36 +00:00
|
|
|
release:
|
|
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
|
|
commands:
|
2022-07-14 20:06:26 +00:00
|
|
|
- export DRONE="true" # Required to convince `env-ci` that it is a known CI
|
2022-07-14 20:37:52 +00:00
|
|
|
- git branch $DRONE_BRANCH origin/$DRONE_BRANCH # semantic-release needs this locally
|
2022-07-13 22:54:36 +00:00
|
|
|
- nix develop --command scripts/release.sh
|
2022-07-14 22:03:24 +00:00
|
|
|
secrets:
|
|
|
|
- gitea_token
|
2022-07-14 22:30:57 +00:00
|
|
|
- git_credentials
|
2022-07-13 23:15:53 +00:00
|
|
|
when:
|
2022-07-15 05:49:11 +00:00
|
|
|
event: [push]
|
2022-07-13 23:15:53 +00:00
|
|
|
branch: main
|