generated from fullstackhero/dotnet-starter-kit
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (26 loc) · 1.23 KB
/
Makefile
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
build:
dotnet build
start:
dotnet run --project src/Host/Host.csproj
nuget:
nuget pack -NoDefaultExcludes -OutputDirectory nupkg
publish:
dotnet publish --os linux --arch x64 -c Release --self-contained
publish-to-hub:
dotnet publish --os linux --arch x64 -c Release -p:ContainerRegistry=docker.io -p:ContainerImageName=iammukeshm/dotnet-webapi --self-contained
tp: # terraform plan
cd terraform/environments/staging && terraform plan
ta: # terraform apply
cd terraform/environments/staging && terraform apply
td: # terraform destroy
cd terraform/environments/staging && terraform destroy
dcu: # docker-compose up : webapi + postgresql
cd docker-compose/ && docker-compose -f docker-compose.postgresql.yml up -d
dcd: # docker-compose down : webapi + postgresql
cd docker-compose/ && docker-compose -f docker-compose.postgresql.yml down
fds: # force rededeploy aws ecs service
aws ecs update-service --force-new-deployment --service dotnet-webapi --cluster fullstackhero
gw: # git docker workflow to push docker image to the repository based on the main branch
@echo triggering github workflow to push docker image to container
@echo ensure that you have the gh-cli installed and authenticated.
gh workflow run dotnet-cicd -f push_to_docker=true