Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d010ea9ad | ||
| 55af8257a7 | |||
| e385d6b52e |
@@ -2,7 +2,7 @@ name: Build and Push Docker Images
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ roman ]
|
branches: [ master ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.nullptr.top
|
REGISTRY: git.nullptr.top
|
||||||
@@ -17,10 +17,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- service: gateway
|
- service: gateway
|
||||||
dockerfile: src/LiquidCode.Tester.Gateway/Dockerfile
|
dockerfile: src/LiquidCode.Tester.Gateway/Dockerfile
|
||||||
image: git.nullptr.top/liquidcode/liquidcode-tester-gateway-roman
|
image: git.nullptr.top/liquidcode/liquidcode-tester-gateway
|
||||||
- service: worker
|
- service: worker
|
||||||
dockerfile: src/LiquidCode.Tester.Worker/Dockerfile
|
dockerfile: src/LiquidCode.Tester.Worker/Dockerfile
|
||||||
image: git.nullptr.top/liquidcode/liquidcode-tester-worker-roman
|
image: git.nullptr.top/liquidcode/liquidcode-tester-worker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -78,10 +78,10 @@ public class WorkerClientService : IWorkerClientService
|
|||||||
{
|
{
|
||||||
var workerUrl = language.ToLowerInvariant() switch
|
var workerUrl = language.ToLowerInvariant() switch
|
||||||
{
|
{
|
||||||
"c++" => _configuration["Workers:Cpp"],
|
"c++" or "cpp" => _configuration["Workers:Cpp"],
|
||||||
"java" => _configuration["Workers:Java"],
|
"java" => _configuration["Workers:Java"],
|
||||||
"kotlin" => _configuration["Workers:Kotlin"],
|
"kotlin" => _configuration["Workers:Kotlin"],
|
||||||
"c#" => _configuration["Workers:CSharp"],
|
"c#" or "csharp" => _configuration["Workers:CSharp"],
|
||||||
"python" => _configuration["Workers:Python"],
|
"python" => _configuration["Workers:Python"],
|
||||||
_ => throw new NotSupportedException($"Language {language} is not supported")
|
_ => throw new NotSupportedException($"Language {language} is not supported")
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user