-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwercker.yml
46 lines (43 loc) · 1.31 KB
/
wercker.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
box: microsoft/dotnet:2.0.4-sdk-2.1.3
no-response-timeout: 10
build:
steps:
- script:
name: restore
cwd: src/PartialFoods.Services.OrderCommandServer
code: |
dotnet restore
- script:
name: build
cwd: src/PartialFoods.Services.OrderCommandServer
code: |
dotnet build
# Packaging...
- script:
name: publish
cwd: src/PartialFoods.Services.OrderCommandServer
code: |
dotnet publish -o publish
- script:
name: copy binary
cwd: src/PartialFoods.Services.OrderCommandServer
code: |
cp -r . $WERCKER_OUTPUT_DIR/app
- script:
name: copy entrypoint
code: |
cp docker_entrypoint.sh $WERCKER_OUTPUT_DIR/app
- script:
name: copy config
cwd: src/PartialFoods.Services.OrderCommandServer
code: |
cp appsettings*json $WERCKER_OUTPUT_DIR/app/publish
mkdir -p $WERCKER_OUTPUT_DIR/app/publish/app/tmp
deploy:
steps:
- internal/docker-push:
username: _json_key
password: $GCR_JSON_KEY_FILE
repository: gcr.io/presentations/pf-ordercommand
registry: https://gcr.io/v2
entrypoint: "/pipeline/source/app/docker_entrypoint.sh"