From e999d16e3ba8e80b371ba6dcc30c31a07663f495 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 13 May 2024 07:22:55 -0400 Subject: enabled docker build for pushes to main: --- .github/workflows/docker.yaml | 2 ++ main.go | 21 --------------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 4153da3..20f7842 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -2,6 +2,8 @@ name: Publish Docker image on: release: types: [published] + push: + branches: [ "main" ] jobs: push_to_registry: name: Push Docker image to Docker Hub diff --git a/main.go b/main.go index c245531..7555e00 100644 --- a/main.go +++ b/main.go @@ -437,13 +437,6 @@ func ollamaHandler( } sendToIRC(client, event, writer.String(), appConfig.ChromaFormatter) - - // log.Println(writer.String()) - // lines := strings.Split(writer.String(), "\n") - - // for _, line := range lines { - // client.Cmd.Reply(event, line) - // } }) } @@ -548,13 +541,6 @@ func geminiHandler( } sendToIRC(client, event, writer.String(), appConfig.ChromaFormatter) - - // log.Println(writer.String()) - // lines := strings.Split(writer.String(), "\n") - - // for _, line := range lines { - // client.Cmd.Reply(event, line) - // } }) } @@ -637,13 +623,6 @@ func chatGPTHandler( } sendToIRC(client, event, writer.String(), appConfig.ChromaFormatter) - - // log.Println(writer.String()) - // lines := strings.Split(writer.String(), "\n") - - // for _, line := range lines { - // client.Cmd.Reply(event, line) - // } }) } -- cgit v1.2.3