diff --git a/internal/client/client.go b/internal/client/client.go deleted file mode 100644 index da13c8e..0000000 --- a/internal/client/client.go +++ /dev/null @@ -1 +0,0 @@ -package client diff --git a/plugins/github/github.go b/plugins/github/github.go index 8095477..b07450e 100644 --- a/plugins/github/github.go +++ b/plugins/github/github.go @@ -156,7 +156,7 @@ func Run(ctx context.Context, logger *slog.Logger) { if err != nil { logging.Panic(ctx, err.Error()) } else { - fmt.Println("Workflow Run Job JSON:", string(workflowJobJSON)) + // fmt.Println("Workflow Run Job JSON:", string(workflowJobJSON)) logger.DebugContext(ctx, "workflow run job json", "data", string(workflowJobJSON)) } @@ -174,7 +174,7 @@ func Run(ctx context.Context, logger *slog.Logger) { ctx = logging.AppendCtx(ctx, slog.String("ankaTemplate", ankaTemplate)) ctx = logging.AppendCtx(ctx, slog.String("ankaTemplateTag", ankaTemplateTag)) - logger.InfoContext(ctx, "starting an Anka VM") + logger.InfoContext(ctx, "starting an anka vm") // See if VM Template existing already pullTemplate := false ankaCLI.RegistryPullMutex.Lock() @@ -234,7 +234,7 @@ func Run(ctx context.Context, logger *slog.Logger) { logging.Panic(ctx, fmt.Sprintf("error creating registration token: %v %+v", err, response)) } if *repoRunnerRegistration.Token == "" { - logging.Panic(ctx, fmt.Sprintf("*repoRunnerRegistration.Token empty")) + logging.Panic(ctx, "registration token is empty; something wrong with github or your service token") } // Clone @@ -248,7 +248,7 @@ func Run(ctx context.Context, logger *slog.Logger) { // Start ankaCLI.AnkaStart(ctx, vmName) // Install runner - logger.InfoContext(ctx, "installing github runner inside of VM") + logger.InfoContext(ctx, "installing github runner inside of vm") ankaCLI.AnkaCopy(ctx, vmName, "install-runner.bash", "register-runner.bash", "start-runner.bash") ankRunScriptOutput, err := ankaCLI.Execute(ctx, "anka", "run", vmName, "./install-runner.bash") if err != nil {