Skip to content

Commit d6ceaf2

Browse files
committed
update to latest version
1 parent a4aa48e commit d6ceaf2

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/build-container.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2525
steps:
2626
- name: Checkout code
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v5
2828

2929
- name: Set up environment variables
3030
run: |
@@ -87,9 +87,9 @@ jobs:
8787
password: ${{ env.KAMAL_REGISTRY_PASSWORD }}
8888

8989
- name: Setup .NET
90-
uses: actions/setup-dotnet@v3
90+
uses: actions/setup-dotnet@v5
9191
with:
92-
dotnet-version: '8.0'
92+
dotnet-version: 8.0.x
9393

9494
- name: Build and push Docker image
9595
run: |

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v5
1515

1616
- name: Setup dotnet
17-
uses: actions/setup-dotnet@v3
17+
uses: actions/setup-dotnet@v5
1818
with:
19-
dotnet-version: '8.*'
19+
dotnet-version: 8.0.x
2020

2121
- name: build
2222
run: dotnet build

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v5
2727

2828
- name: Set up environment variables
2929
run: |
@@ -76,7 +76,8 @@ jobs:
7676
driver-opts: image=moby/buildkit:master
7777

7878
- name: Kamal bootstrap
79-
run: kamal server bootstrap
79+
run: |
80+
kamal server bootstrap
8081
8182
- name: Check if first run and execute kamal app boot if necessary
8283
run: |
@@ -102,4 +103,5 @@ jobs:
102103
- name: Deploy with Kamal
103104
run: |
104105
kamal lock release -v
106+
kamal server exec --no-interactive 'echo "${{ env.KAMAL_REGISTRY_PASSWORD }}" | docker login ghcr.io -u ${{ env.KAMAL_REGISTRY_USERNAME }} --password-stdin'
105107
kamal deploy -P --version latest

MyApp/Configure.Db.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public void Configure(IWebHostBuilder builder) => builder
1414
var connectionString = context.Configuration.GetConnectionString("DefaultConnection")
1515
?? "DataSource=App_Data/app.db;Cache=Shared";
1616

17-
services.AddSingleton<IDbConnectionFactory>(new OrmLiteConnectionFactory(
18-
connectionString, SqliteDialect.Provider));
17+
services.AddOrmLite(options => options.UseSqlite(connectionString));
1918

2019
// $ dotnet ef migrations add CreateIdentitySchema
2120
// $ dotnet ef database update

0 commit comments

Comments
 (0)