|
|
@ -0,0 +1,31 @@ |
|
|
|
kind: pipeline |
|
|
|
name: default |
|
|
|
type: docker |
|
|
|
|
|
|
|
steps: |
|
|
|
- name: test |
|
|
|
image: rust:alpine |
|
|
|
commands: |
|
|
|
- cargo build --verbose --all |
|
|
|
- cargo test --verbose --all |
|
|
|
|
|
|
|
- name: build |
|
|
|
image: rust:alpine |
|
|
|
commands: |
|
|
|
- cargo build --release |
|
|
|
when: |
|
|
|
event: |
|
|
|
- tag |
|
|
|
|
|
|
|
- name: gitea_release |
|
|
|
image: plugins/gitea-release |
|
|
|
settings: |
|
|
|
api_key: |
|
|
|
from_secret: api_key |
|
|
|
base_url: https://git.schneider-hosting.de |
|
|
|
files: dist/* |
|
|
|
when: |
|
|
|
event: |
|
|
|
- tag |
|
|
|
depends_on: |
|
|
|
- build |