37 lines
934 B
YAML
37 lines
934 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
|
||
|
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 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
|