38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
tags: true
|
|
|
|
pipeline:
|
|
build:
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
commands:
|
|
- nix profile install 'nixpkgs#fontconfig'
|
|
- nix develop --command scripts/build.sh
|
|
secrets:
|
|
- gitea_token
|
|
- git_credentials
|
|
- s3_bucket
|
|
- s3_endpoint
|
|
- s3_access_key_id
|
|
- s3_secret_access_key
|
|
when:
|
|
event: [push, pull_request, tag]
|
|
tag: v*
|
|
|
|
release:
|
|
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
|
commands:
|
|
- nix profile install 'nixpkgs#fontconfig'
|
|
- nix develop --command scripts/release.sh
|
|
secrets:
|
|
- gitea_token
|
|
- git_credentials
|
|
- s3_bucket
|
|
- s3_endpoint
|
|
- s3_access_key_id
|
|
- s3_secret_access_key
|
|
when:
|
|
event: push
|
|
branch: main
|