Skip to content

Commit f7c6e8a

Browse files
Merge pull request #3 from minhsangdotcom/feature/PeformanceOptimizing
Feature/peformance optimizing
2 parents af42c05 + fb1e35d commit f7c6e8a

File tree

352 files changed

+77143
-79495
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+77143
-79495
lines changed

.github/workflows/github-cicd.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
branches:
99
- main
1010

11-
env:
12-
DOTNET_INSTALL_DIR: "./.dotnet"
13-
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
11+
#env:
12+
#DOTNET_INSTALL_DIR: "./.dotnet"
13+
#NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
1414

1515
jobs:
1616
build-and-deploy:
@@ -27,9 +27,17 @@ jobs:
2727
- name: Setup .NET
2828
uses: actions/setup-dotnet@v4
2929
with:
30-
dotnet-version: "8.0.406"
31-
cache: true
32-
cache-dependency-path: "**/packages.lock.json"
30+
dotnet-version: "8.0.408"
31+
#cache: true
32+
#cache-dependency-path: "src/**/packages.lock.json"
33+
- name: Cache NuGet packages
34+
id: cache-nuget
35+
uses: actions/cache@v4
36+
with:
37+
path: ~/.nuget/packages
38+
key: ${{ runner.os }}-nuget-${{ hashFiles('src/**/packages.lock.json','tests/**/packages.lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-nuget-
3341
- name: Install dependencies
3442
run: dotnet restore --locked-mode
3543
- name: Build
@@ -40,7 +48,7 @@ jobs:
4048
run: dotnet publish -c Release -o app/publish
4149
- uses: actions/upload-artifact@v4
4250
with:
43-
name: my-artifact
51+
name: dotnet-app
4452
path: |
4553
app/publish
4654
app/output/test-results

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# dotenv files
77
.env
8-
8+
.vscode/
99
# User-specific files
1010
*.rsuser
1111
*.suo

.vscode/launch.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# Use the official .NET runtime image as a base for production
2-
FROM mcr.microsoft.com/dotnet/aspnet:8.0.12 AS base
3-
WORKDIR /app
4-
EXPOSE 8080
5-
6-
# Copy the published application from the workflow
7-
FROM base AS final
1+
FROM mcr.microsoft.com/dotnet/aspnet:8.0.15
82
WORKDIR /app
93
COPY app/publish .
104
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)