Skip to content

Commit

Permalink
update docker image url
Browse files Browse the repository at this point in the history
  • Loading branch information
zarazan committed Nov 20, 2023
1 parent bd59483 commit 7278e38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ docker-push:
@docker push ghcr.io/ojo-network/price-feeder-ojo

docker-build-monitor:
@DOCKER_BUILDKIT=1 docker build -t us-west4-docker.pkg.dev/ojo-network/oracle-monitor -f monitor.Dockerfile .
@DOCKER_BUILDKIT=1 docker build -t us-west4-docker.pkg.dev/ojo-network/oracle-monitor/oracle-monitor -f monitor.Dockerfile .

docker-push-monitor:
@docker push us-west4-docker.pkg.dev/ojo-network/oracle-monitor
@docker push us-west4-docker.pkg.dev/ojo-network/oracle-monitor/oracle-monitor

.PHONY: docker-build docker-push docker-build-monitor docker-push-monitor

Expand Down
11 changes: 7 additions & 4 deletions monitor/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ func (sc *SlackClient) Notify(priceErrors []PriceError) {
for _, priceError := range priceErrors {
messages = append(messages, priceError.Message)
}
message := strings.Join(messages, "\n")
fmt.Println(message)
sc.SendMessages(messages)
return
}

Expand Down Expand Up @@ -69,8 +68,12 @@ func (sc *SlackClient) Notify(priceErrors []PriceError) {
fmt.Println("no new errors to report")
return
}

sc.SendMessages(messages)
}

func (sc *SlackClient) SendMessages(messages []string) {
message := strings.Join(messages, "\n")
fmt.Println(message)

// sc.client.PostMessage(sc.config.SlackChannel, slack.MsgOptionText("test", false))
sc.client.PostMessage(sc.config.SlackChannel, slack.MsgOptionText(message, false))
}

0 comments on commit 7278e38

Please sign in to comment.