-
Notifications
You must be signed in to change notification settings - Fork 6
/
wercker.yml
47 lines (44 loc) · 1.32 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
47
box: microsoft/dotnet:1.1.1-sdk
no-response-timeout: 10
build:
steps:
- script:
name: restore
cwd: src/StatlerWaldorfCorp.EcommerceCatalog
code: |
dotnet restore
- script:
name: build
cwd: src/StatlerWaldorfCorp.EcommerceCatalog
code: |
dotnet build
# Packaging...
- script:
name: publish
cwd: src/StatlerWaldorfCorp.EcommerceCatalog
code: |
dotnet publish -o publish
- script:
name: copy binary
cwd: src/StatlerWaldorfCorp.EcommerceCatalog
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/StatlerWaldorfCorp.EcommerceCatalog
code: |
cp appsettings*json $WERCKER_OUTPUT_DIR/app/publish
mkdir -p $WERCKER_OUTPUT_DIR/app/publish/app/tmp
deploy:
steps:
- internal/docker-push:
cwd: $WERCKER_OUTPUT_DIR/app
username: $USERNAME
password: $PASSWORD
repository: dotnetcoreservices/ecommerce-catalog
registry: https://registry.hub.docker.com
entrypoint: "/pipeline/source/app/docker_entrypoint.sh"