forked from GlaireDaggers/Netcode.IO.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
25 lines (24 loc) · 996 Bytes
/
cloudbuild.yaml
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
# Builds this library, runs tests, and packages it as a NuGet package. Publishes the package to the
# given feed.
#
# To set this up in Google Container Builder create a new build trigger based on branch. Set the following
# substitution variables:
# _VER Base package version to use, e.g. 0.1.2
# _FEED The NuGet feed publish address
# _FEED_KEY The NuGet feed publish key
#
# Example to run on dev environment without docker, without publish
# ./publish.sh 0.1.0-something
#
# Example inside docker with publish, emulating how it is run on Google Cloud Container Builder:
# docker run -v $(pwd):/workspace --entrypoint bash \
# microsoft/dotnet:2.0.5-sdk-2.1.4-stretch \
# /workspace/publish.sh 0.1.2-foo https://www.myget.org/F/games/api/v2/package [my-feed-key]
steps:
- name: "microsoft/dotnet:2.0.5-sdk-2.1.4-stretch"
entrypoint: "bash"
args:
- '/workspace/publish.sh'
- '${_VER}-$COMMIT_SHA'
- '${_FEED}'
- '${_FEED_KEY}'