Updated argo build to use minio

This commit is contained in:
pb
2025-07-28 15:52:27 +02:00
parent 0b652f5dfc
commit 6bacf44f2f
4 changed files with 49 additions and 35 deletions

20
main.go
View File

@@ -102,16 +102,16 @@ func main() {
workflowName = getContainerName(argoFilePath)
// if conf.GetConfig().KubeHost == "" {
// // Not in a k8s environment, get conf from parameters
// logger.Info().Msg("Executes outside of k8s")
// executeOutside(argoFilePath, builder.Workflow)
// } else {
// // Executed in a k8s environment
// logger.Info().Msg("Executes inside a k8s")
// // executeInside(exec.GetID(), "argo", argo_file_path, stepMax) // commenting to use conf.ExecutionID instead of exec.GetID()
// executeInside(conf.GetConfig().ExecutionID, exec.ExecutionsID, argoFilePath)
// }
if conf.GetConfig().KubeHost == "" {
// Not in a k8s environment, get conf from parameters
logger.Info().Msg("Executes outside of k8s")
executeOutside(argoFilePath, builder.Workflow)
} else {
// Executed in a k8s environment
logger.Info().Msg("Executes inside a k8s")
// executeInside(exec.GetID(), "argo", argo_file_path, stepMax) // commenting to use conf.ExecutionID instead of exec.GetID()
executeInside(conf.GetConfig().ExecutionID, exec.ExecutionsID, argoFilePath)
}
}
// So far we only log the output from