Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed Mar 22, 2024
1 parent 4918a77 commit 6e691c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion internal/client/client.go

This file was deleted.

8 changes: 4 additions & 4 deletions plugins/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand All @@ -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()
Expand Down Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 6e691c9

Please sign in to comment.