File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed
Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 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 : |
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 : |
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 : |
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments