This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (33 loc) · 1.92 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
27
28
29
30
31
32
33
34
35
36
37
38
39
include .env
export
.PHONY: publish
publish-all-dockers: publish-api publish-identity publish-storefront publish-backoffice publish-bff
.PHONY: publish-api
publish-api:
dotnet publish ./src/RookieShop.ApiService/RookieShop.ApiService.csproj --os linux --arch x64 /t:PublishContainer -c Release
docker tag rookieshop-apiservice:latest ghcr.io/foxminchan/rookieshop/rookieshop-apiservice:${VERSION}
docker rmi rookieshop-apiservice:latest
docker push ghcr.io/foxminchan/rookieshop/rookieshop-apiservice:${VERSION}
.PHONY: publish-identity
publish-identityserver:
dotnet publish ./src/RookieShop.IdentityService/RookieShop.IdentityService.csproj --os linux --arch x64 /t:PublishContainer -c Release
docker tag rookieshop-identityservice:latest ghcr.io/foxminchan/rookieshop/rookieshop-identityservice:${VERSION}
docker rmi rookieshop-identityservice:latest
docker push ghcr.io/foxminchan/rookieshop/rookieshop-identityservice:${VERSION}
.PHONY: publish-storefront
publish-storefront:
dotnet publish ./src/RookieShop.Storefront/RookieShop.Storefront.csproj --os linux --arch x64 /t:PublishContainer -c Release
docker tag rookieshop-storefront:latest ghcr.io/foxminchan/rookieshop/rookieshop-storefront:${VERSION}
docker rmi rookieshop-storefront:latest
docker push ghcr.io/foxminchan/rookieshop/rookieshop-storefront:${VERSION}
.PHONY: publish-bff
publish-bff:
dotnet publish ./src/RookieShop.Bff/RookieShop.Bff.csproj --os linux --arch x64 /t:PublishContainer -c Release
docker tag rookieshop-bff:latest ghcr.io/foxminchan/rookieshop/rookieshop-bff:${VERSION}
docker rmi rookieshop-bff:latest
docker push ghcr.io/foxminchan/rookieshop/rookieshop-bff:${VERSION}
.PHONY: publish-backoffice
publish-backoffice:
docker build -f ./src/RookieShop.Backoffice/Dockerfile . --tag ghcr.io/foxminchan/rookieshop/rookieshop-backoffice:${VERSION}
docker rmi rookieshop-backoffice:latest
docker push ghcr.io/foxminchan/rookieshop/rookieshop-backoffice:${VERSION}