-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
41 lines (40 loc) · 1.14 KB
/
buildspec.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
# Do not change version. This is the version of aws buildspec, not the version of your buldspec file.
version: 0.2
phases:
install:
runtime-versions:
dotnet: 3.0
commands:
- echo Installing some stuff...
- dotnet --version
- dotnet --list-sdks
- dotnet --list-runtimes
- pwd
- ls
- docker -v
pre_build:
commands:
- echo Clean and restore dotnet project
- cd ./app/src/app.Web
- dotnet clean
- dotnet restore
build:
commands:
- echo Build started on `date`
- dotnet publish -c Release -o ../../output
post_build:
commands:
- echo Build completed on `date`
- cd ../..
- ls
- ls output
# Include only the files required for your application to run.
# Do not use recursively include artifacts from node_modules directory as it will include unnecessary packages
# used only for building and testing.
# ExpressJS apps will need other artifact directories included (bin/*, public/*, routes/*, views/* etc).
artifacts:
base-directory: app
files:
- output/**/*
- appspec.yml
- scripts/*