feat: Testing fluentd logging driver

This commit is contained in:
Andras Bacsai
2022-04-20 00:20:37 +02:00
parent 2b28f8bd8f
commit 3ab6a231eb
4 changed files with 42 additions and 1 deletions

View File

@@ -289,6 +289,9 @@ export default async function (job: Job<BuilderJob, void, string>): Promise<void
labels,
depends_on: [],
restart: 'always',
// logging: {
// driver: 'fluentd',
// },
deploy: {
restart_policy: {
condition: 'on-failure',

10
src/routes/logs.json.ts Normal file
View File

@@ -0,0 +1,10 @@
import type { RequestHandler } from '@sveltejs/kit';
export const post: RequestHandler = async (event) => {
const data = await event.request.json();
console.log(data);
return {
status: 200,
body: {}
};
};