added conf/ and configuration logic

This commit is contained in:
pb
2024-07-03 10:22:22 +02:00
parent dd6f112954
commit f9e5c591bd
6 changed files with 15 additions and 92 deletions

View File

@@ -61,7 +61,7 @@ func (b *ArgoBuilder) CreateDAG() bool {
// Give a unique name to each argo file with its timestamp DD:MM:YYYY_hhmmss
current_timestamp := time.Now().Format("02_01_2006_150405")
file_name := random_name + "_" + current_timestamp + ".yml"
workflows_dir := "workflows_argo/"
workflows_dir := "argo_workflows/"
err = os.WriteFile(workflows_dir + file_name , []byte(yamlified), 0660)
if err != nil {
logs.Error("Could not write the yaml file")