#1 : Test de déploiement nouveau act-runner.

This commit is contained in:
Loic Masi
2026-04-21 09:47:09 +02:00
parent a397381baa
commit 4157991805
5 changed files with 37 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
name: Deploiement Test Keycloak
run-nale: ${{ gitea.actor }} déploie test keycloak.
on:
push:
branches:
- loic-masi/ajout-auth-keycloak
jobs:
Deploiement-Test-Keycloak:
name: Build et Déploiement
runs-on: test-keycloak
steps:
- name: Récupération du code source
uses: actions/checkout@v4
- name: Redémarrage Docker
run: |
echo "Démarrage du déploiement Docker"
docker compose down
docker compose up -d --build
echo "Déploiement terminé !"

View File

@@ -22,6 +22,8 @@
<ItemGroup>
<PackageReference Include="Faker.Net" Version="2.0.163" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.3.9" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="10.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="10.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.5" />

View File

@@ -1,6 +1,6 @@
{
"Seeder": "Local",
"Repository": "Db",
"Repository": "Local",
"SpotifySeeder": {
"ClientId": "",
"ClientSecret": ""

View File

@@ -1,8 +1,8 @@
{
"Seeder": "Spotify",
"Repository": "Db",
"Seeder": "Local",
"Repository": "Local",
"SpotifySeeder": {
"ClientId": "390689c2fc79408b830d2f518375ef84",
"ClientSecret": "6e98a09c77ad43ae93bc0f0560cfcbe1"
"ClientId": "",
"ClientSecret": ""
}
}

View File

@@ -13,7 +13,7 @@
},
"ConnectionStrings": {
"SqliteConnection": "Data Source=Data/webzine.sqlite",
"PostGreSQLConnection": "Host=localhost;Port=5432;Username=admin;Password=admin123;Database=webzine_db"
"PostGreSQLConnection": ""
},
"SpotifySeeder": {
"ClientId": "",
@@ -25,6 +25,12 @@
"TracksPerAlbum": 40,
"MaxCommentsPerTrack": 3
},
"Keycloak": {
"Authority": "https://<keycloak-host>/realms/<your-realm>",
"ClientId": "my-aspnet-app",
"ClientSecret": "your-client-secret",
"ResponseType": "code"
},
"AllowedHosts": "*",
"EfPerformance": {
"SeuilMs": 60