Compare commits
9 Commits
2fef8bf255
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f80388351f | |||
| 9332f77959 | |||
| 6353e0c7b3 | |||
| 1161717f74 | |||
| b50f928318 | |||
| 256858f169 | |||
| fcab8b4a25 | |||
| fa62efc2e3 | |||
| 3a4e8a2f5a |
@@ -8,8 +8,22 @@ on:
|
||||
|
||||
env:
|
||||
REGISTRY: gitea.theriise.net/steinhelge
|
||||
REGISTRY_HOST: gitea.theriise.net
|
||||
REGISTRY_NAMESPACE: steinhelge
|
||||
IMAGE_NAME: minattest
|
||||
|
||||
jobs:
|
||||
wake-zorin:
|
||||
name: Wake Zorin
|
||||
runs-on: waker # t610-waker-runneren med label "waker"
|
||||
|
||||
steps:
|
||||
- name: Wake Zorin via WOL
|
||||
run: /home/steinhelge/wake-zorin.sh
|
||||
|
||||
- name: Vent på at Zorin våkner
|
||||
run: sleep 10
|
||||
|
||||
build-and-push:
|
||||
runs-on: self-hosted
|
||||
|
||||
@@ -76,4 +90,10 @@ jobs:
|
||||
- name: Push App Host (${{ env.TAG }})
|
||||
run: |
|
||||
docker push $REGISTRY/minattest-app-host:${TAG}
|
||||
|
||||
- name: Deploy (docker compose pull + up)
|
||||
run: |
|
||||
cd /srv/minattest # ← Endre denne pathen hvis compose ligger et annet sted
|
||||
docker compose pull
|
||||
docker compose up -d
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
|
||||
@@ -1,42 +1,42 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"Using": [ "Serilog.Sinks.Console" ],
|
||||
"MinimumLevel": {
|
||||
"Default": "Verbose",
|
||||
"Override": {
|
||||
"Microsoft": "Information",
|
||||
"System": "Information"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console",
|
||||
"Args": {
|
||||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Literate, Serilog.Sinks.Console",
|
||||
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}|{RequestId}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": [ "FromLogContext" ]
|
||||
},
|
||||
"ReverseProxy": {
|
||||
"Routes": {
|
||||
"userApiRoute": {
|
||||
"ClusterId": "clusterUser",
|
||||
"Match": {
|
||||
"Path": "/api/{**catch-all}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Clusters": {
|
||||
"clusterUser": {
|
||||
"Destinations": {
|
||||
"destination1": {
|
||||
"Address": "https://localhost:7172/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
{
|
||||
"Serilog": {
|
||||
"Using": [ "Serilog.Sinks.Console" ],
|
||||
"MinimumLevel": {
|
||||
"Default": "Verbose",
|
||||
"Override": {
|
||||
"Microsoft": "Information",
|
||||
"System": "Information"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console",
|
||||
"Args": {
|
||||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Literate, Serilog.Sinks.Console",
|
||||
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}|{RequestId}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": [ "FromLogContext" ]
|
||||
},
|
||||
"ReverseProxy": {
|
||||
"Routes": {
|
||||
"userApiRoute": {
|
||||
"ClusterId": "clusterUser",
|
||||
"Match": {
|
||||
"Path": "/api/{**catch-all}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Clusters": {
|
||||
"clusterUser": {
|
||||
"Destinations": {
|
||||
"destination1": {
|
||||
"Address": "http://backend-api:8080/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
@@ -1,42 +1,42 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"Using": [ "Serilog.Sinks.Console" ],
|
||||
"MinimumLevel": {
|
||||
"Default": "Verbose",
|
||||
"Override": {
|
||||
"Microsoft": "Information",
|
||||
"System": "Information"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console",
|
||||
"Args": {
|
||||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Literate, Serilog.Sinks.Console",
|
||||
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}|{RequestId}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": [ "FromLogContext" ]
|
||||
},
|
||||
"ReverseProxy": {
|
||||
"Routes": {
|
||||
"userApiRoute": {
|
||||
"ClusterId": "clusterUser",
|
||||
"Match": {
|
||||
"Path": "/api/{**catch-all}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Clusters": {
|
||||
"clusterUser": {
|
||||
"Destinations": {
|
||||
"destination1": {
|
||||
"Address": "https://localhost:7172/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
{
|
||||
"Serilog": {
|
||||
"Using": [ "Serilog.Sinks.Console" ],
|
||||
"MinimumLevel": {
|
||||
"Default": "Verbose",
|
||||
"Override": {
|
||||
"Microsoft": "Information",
|
||||
"System": "Information"
|
||||
}
|
||||
},
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "Console",
|
||||
"Args": {
|
||||
"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Literate, Serilog.Sinks.Console",
|
||||
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}|{RequestId}] {Message:lj} <s:{SourceContext}>{NewLine}{Exception}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": [ "FromLogContext" ]
|
||||
},
|
||||
"ReverseProxy": {
|
||||
"Routes": {
|
||||
"userApiRoute": {
|
||||
"ClusterId": "clusterUser",
|
||||
"Match": {
|
||||
"Path": "/api/{**catch-all}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Clusters": {
|
||||
"clusterUser": {
|
||||
"Destinations": {
|
||||
"destination1": {
|
||||
"Address": "http://backend-api:8080/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
Reference in New Issue
Block a user