LeoColman
04/10/2023, 5:21 PMPiotr Krzemiński
04/11/2023, 5:21 AMLeoColman
04/11/2023, 5:44 PMMaking it runnable with Docker would be much easier.This seems interesting for other people to host it too, or whenever we find an official supporter/donor
Piotr Krzemiński
04/11/2023, 5:45 PMLeoColman
04/11/2023, 6:14 PM<http://colman.com.br|colman.com.br>
and can create a <http://github-workflows-kt.colman.com.br|github-workflows-kt.colman.com.br>
if we don't have a domain to point there. The best alternative would be to point another domain there when we have onejmfayard
04/12/2023, 4:57 AMPiotr Krzemiński
04/17/2023, 7:29 PM> docker run -p 8080:8080 -d krzema12/github-workflows-kt-script-generator-server:0.41.0
> curl '<http://localhost:8080/api/yaml-to-kotlin>' -X POST -H 'Content-Type: application/json' -d "{\"yaml\": \"name: Test\non:\n push:\"}" | sed 's/\\n/\n/g'
{"kotlinScript":"#!/usr/bin/env kotlin
@file:DependsOn(\"io.github.typesafegithub:github-workflows-kt:0.41.0\")
import io.github.typesafegithub.workflows.domain.Workflow
import io.github.typesafegithub.workflows.domain.triggers.Push
import io.github.typesafegithub.workflows.dsl.expressions.expr
import io.github.typesafegithub.workflows.dsl.workflow
import io.github.typesafegithub.workflows.yaml.toYaml
import io.github.typesafegithub.workflows.yaml.writeToFile
import java.nio.`file`.Paths
public val workflowTest: Workflow = workflow(
name = \"Test\",
on = listOf(
Push(),
),
sourceFile = Paths.get(\".github/workflows/test.main.kts\"),
) {
}
workflowTest.writeToFile()"}
LeoColman
04/17/2023, 7:31 PMcurl '<https://github-workflows-kt.colman.com.br/api/yaml-to-kotlin>' -X POST -H 'Content-Type: application/json' -d "{\"yaml\": \"name: Test\non:\n push:\"}" | sed 's/\\n/\n/g'
Piotr Krzemiński
04/18/2023, 6:48 AMLeoColman
04/18/2023, 10:18 AMPiotr Krzemiński
04/18/2023, 10:19 AMlatest
tag yet 🙈 but yeah, we can consider it in the “moving fast” dev phase of this tool