#1 : Test de déploiement nouveau act-runner.
This commit is contained in:
23
.gitea/workflows/deploy-test-keycloak.yaml
Normal file
23
.gitea/workflows/deploy-test-keycloak.yaml
Normal 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é !"
|
||||||
@@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Faker.Net" Version="2.0.163" />
|
<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.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="10.0.3" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.5" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.5" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.5" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.5" />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Seeder": "Local",
|
"Seeder": "Local",
|
||||||
"Repository": "Db",
|
"Repository": "Local",
|
||||||
"SpotifySeeder": {
|
"SpotifySeeder": {
|
||||||
"ClientId": "",
|
"ClientId": "",
|
||||||
"ClientSecret": ""
|
"ClientSecret": ""
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"Seeder": "Spotify",
|
"Seeder": "Local",
|
||||||
"Repository": "Db",
|
"Repository": "Local",
|
||||||
"SpotifySeeder": {
|
"SpotifySeeder": {
|
||||||
"ClientId": "390689c2fc79408b830d2f518375ef84",
|
"ClientId": "",
|
||||||
"ClientSecret": "6e98a09c77ad43ae93bc0f0560cfcbe1"
|
"ClientSecret": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"SqliteConnection": "Data Source=Data/webzine.sqlite",
|
"SqliteConnection": "Data Source=Data/webzine.sqlite",
|
||||||
"PostGreSQLConnection": "Host=localhost;Port=5432;Username=admin;Password=admin123;Database=webzine_db"
|
"PostGreSQLConnection": ""
|
||||||
},
|
},
|
||||||
"SpotifySeeder": {
|
"SpotifySeeder": {
|
||||||
"ClientId": "",
|
"ClientId": "",
|
||||||
@@ -25,6 +25,12 @@
|
|||||||
"TracksPerAlbum": 40,
|
"TracksPerAlbum": 40,
|
||||||
"MaxCommentsPerTrack": 3
|
"MaxCommentsPerTrack": 3
|
||||||
},
|
},
|
||||||
|
"Keycloak": {
|
||||||
|
"Authority": "https://<keycloak-host>/realms/<your-realm>",
|
||||||
|
"ClientId": "my-aspnet-app",
|
||||||
|
"ClientSecret": "your-client-secret",
|
||||||
|
"ResponseType": "code"
|
||||||
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"EfPerformance": {
|
"EfPerformance": {
|
||||||
"SeuilMs": 60
|
"SeuilMs": 60
|
||||||
|
|||||||
Reference in New Issue
Block a user