-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
27 lines (27 loc) · 1.21 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
version: 0.2
phases:
install:
runtime-versions:
dotnet: 3.1
pre_build:
commands:
- dotnet restore AspNetCoreWebService/AspNetCoreWebService.csproj
- dotnet restore AspNetCoreWebServiceTest/AspNetCoreWebServiceTest.csproj
build:
commands:
- dotnet publish -c release -o ./build_output AspNetCoreWebService/AspNetCoreWebService.csproj
- dotnet publish -c release -o ./test_output AspNetCoreWebServiceTest/AspNetCoreWebServiceTest.csproj
- dotnet vstest AspNetCoreWebServiceTest/bin/release/netcoreapp3.1/AspNetCoreWebServiceTest.dll
post_build:
commands:
# Do not remove this statement. This command is required for AWS CodeStar projects.
# Update the AWS Partition, AWS Region, account ID and project ID in the project ARN in template-configuration.json file so AWS CloudFormation can tag project resources.
- sed -i.bak 's/\$PARTITION\$/'${PARTITION}'/g;s/\$AWS_REGION\$/'${AWS_REGION}'/g;s/\$ACCOUNT_ID\$/'${ACCOUNT_ID}'/g;s/\$PROJECT_ID\$/'${PROJECT_ID}'/g' template-configuration.json
artifacts:
files:
- template.yml
- AspNetCoreWebService/bin/**/*
- scripts/**/*
- appspec.yml
- requirements.txt
- template-configuration.json