-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild-branch.yaml
More file actions
27 lines (26 loc) · 1.79 KB
/
cloudbuild-branch.yaml
File metadata and controls
27 lines (26 loc) · 1.79 KB
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
steps:
- name: gcr.io/cloud-builders/git
args: ['fetch', '--unshallow']
- name: gcr.io/graphschema/dotnet_gitversion
args: ['bash', '-c', 'dotnet-gitversion /showvariable FullSemVer | sed "s/+/-/g" > GITVERSION']
- name: microsoft/dotnet:2.2-sdk
args: ['bash', '-c', 'dotnet build -c Release -p:Version=$(cat GITVERSION)']
- name: microsoft/dotnet:2.2-sdk
args: ['bash', '-c', 'dotnet test -c Release -p:Version=$(cat GITVERSION) --no-build --no-restore']
- name: microsoft/dotnet:2.2-sdk
args: ['bash', '-c', 'dotnet pack source/GraphQL.Client/GraphQL.Client.csproj -c Release -p:Version=$(cat GITVERSION) --no-restore --no-build --output ../../artifacts']
- name: microsoft/dotnet:2.2-sdk
args: ['bash', '-c', 'dotnet pack source/GraphSchema.io.Client/GraphSchema.io.Client.csproj -c Release -p:Version=$(cat GITVERSION) --no-restore --no-build --output ../../artifacts']
- name: microsoft/dotnet:2.2-sdk
entrypoint: 'bash'
args: ['-c', 'dotnet nuget push artifacts/GraphSchema.GraphQL.Client.$(cat GITVERSION).nupkg -k $$NUGET_KEY -s https://f.feedz.io/graphschema-io/graphschemaclients/nuget -ss https://f.feedz.io/graphschema-io/graphschemaclients/symbols']
secretEnv: ['NUGET_KEY']
- name: microsoft/dotnet:2.2-sdk
entrypoint: 'bash'
args: ['-c', 'dotnet nuget push artifacts/GraphSchema.io.Client.$(cat GITVERSION).nupkg -k $$NUGET_KEY -s https://f.feedz.io/graphschema-io/graphschemaclients/nuget -ss https://f.feedz.io/graphschema-io/graphschemaclients/symbols']
secretEnv: ['NUGET_KEY']
timeout: 240s
secrets:
- kmsKeyName: projects/graphschemaio/locations/global/keyRings/graphschemaio-keys/cryptoKeys/nuget-key
secretEnv:
NUGET_KEY: CiQA/F0xt6zA7eM2zDMpVKeXFZ52fbHk9Qe3OqiByqUXZJjs1i0STgBcFlmfnuSt1uazynh5YEMeMdnAPxVBEmV0qh+ObFUvEXknbN4K+dG63XhrsIEfOVfQgAuzevHrWv/wdX6K2NNXG3Ng1hyEOM9guYditw==