-
Notifications
You must be signed in to change notification settings - Fork 0
/
buddy.yml
53 lines (53 loc) · 1.62 KB
/
buddy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
- pipeline: "test"
on: "EVENT"
events:
- type: "PUSH"
refs:
- "refs/heads/master"
priority: "NORMAL"
fail_on_prepare_env_warning: true
actions:
- action: "dotnet test"
type: "BUILD"
working_directory: "/buddy/sopornu"
docker_image_name: "dotnet/sdk"
docker_image_tag: "8.0"
registry: "mcr.microsoft.com"
execute_commands:
- "dotnet test src/SoporNu.sln -c Release --filter FullyQualifiedName!~IntegrationTest -p:Version=0.0.1"
volume_mappings:
- "/:/buddy/sopornu"
cache_base_image: true
shell: "BASH"
- pipeline: "pack and push"
on: "CLICK"
refs:
- "refs/heads/master"
priority: "NORMAL"
fail_on_prepare_env_warning: true
actions:
- action: "dotnet pack"
type: "BUILD"
working_directory: "/buddy/sopornu"
docker_image_name: "dotnet/sdk"
docker_image_tag: "8.0"
registry: "mcr.microsoft.com"
execute_commands:
- "dotnet pack src/SoporNu.sln -c Release --output \"nupkgs\" -p:Version=$version"
volume_mappings:
- "/:/buddy/sopornu"
cache_base_image: true
shell: "BASH"
- action: "dotnet nuget push"
type: "BUILD"
working_directory: "/buddy/sopornu"
docker_image_name: "dotnet/sdk"
docker_image_tag: "8.0"
registry: "mcr.microsoft.com"
execute_commands:
- "dotnet nuget push nupkgs/SoporNu.$version.nupkg -k $nuget_api_key -s https://api.nuget.org/v3/index.json"
- "dotnet nuget push nupkgs/SoporNu.Extensions.Microsoft.DependencyInjection.$version.nupkg -k $nuget_api_key -s https://api.nuget.org/v3/index.json"
volume_mappings:
- "/:/buddy/sopornu"
cache_base_image: true
shell: "BASH"