aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-05-13 11:22:55 +0000
committerterminaldweller <devi@terminaldweller.com>2024-05-13 11:22:55 +0000
commite999d16e3ba8e80b371ba6dcc30c31a07663f495 (patch)
treeced66b4ef67ec4fe72256ba480273bb839b02224
parentadded a github action for building the go package (diff)
downloadmilla-e999d16e3ba8e80b371ba6dcc30c31a07663f495.tar.gz
milla-e999d16e3ba8e80b371ba6dcc30c31a07663f495.zip
enabled docker build for pushes to main:
-rw-r--r--.github/workflows/docker.yaml2
-rw-r--r--main.go21
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)
- // }
})
}