Skip to content

Commit

Permalink
feat: 🎸 add screenshots to README
Browse files Browse the repository at this point in the history
✅ Closes: #13
  • Loading branch information
RobinHeidenis committed Nov 29, 2023
1 parent 52fe500 commit 5d7c0ca
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 10 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,23 @@ It uses the following technologies:

### Discord notifications
#### Container started
![container-started.png](public/container-started.png)
![container-started.png](public/container-started.png)

#### Container stopped
![container-stopped.png](public/container-stopped.png)

#### Container healthy
![container-healthy.png](public/container-healthy.png)

#### Container unhealthy
![container-unhealthy.png](public/container-unhealthy.png)

#### Container errored
![container-errored.png](public/container-errored.png)

### Periodic notification
#### Running containers
![container-list.png](public/container-list.png)

#### All containers
![container-list-all.png](public/container-list-all.png)
16 changes: 7 additions & 9 deletions pkg/heimdall/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ func New(webhookURL string) *DiscordProvider {
}
}

var AvatarUrl = "https://github.com/RobinHeidenis/heimdall/blob/52fe5004e0e254d2e24e574807f4879b494024fc/public/logo.png?raw=true"
var BotName = "Heimdall"

func (p DiscordProvider) SendPeriodicContainerStatusUpdate(updateTable string) {
username := "Heimdall"
avatarUrl := "https://neellik.com/wp-content/uploads/2022/03/heimdall.png"
authorName := "Docker Container Status"
authorIconUrl := "https://www.docker.com/wp-content/uploads/2023/04/cropped-Docker-favicon-32x32.png"
title := "Periodic status update"
Expand All @@ -35,8 +36,8 @@ func (p DiscordProvider) SendPeriodicContainerStatusUpdate(updateTable string) {
}}

message := discordwebhook.Message{
Username: &username,
AvatarUrl: &avatarUrl,
Username: &BotName,
AvatarUrl: &AvatarUrl,
Embeds: &embeds,
}

Expand Down Expand Up @@ -139,12 +140,9 @@ func makeWebhookMessage(event ContainerEvent) discordwebhook.Message {
Color: &embedColor,
}}

username := "Heimdall"
avatarUrl := "https://neellik.com/wp-content/uploads/2022/03/heimdall.png"

return discordwebhook.Message{
Embeds: &embeds,
Username: &username,
AvatarUrl: &avatarUrl,
Username: &BotName,
AvatarUrl: &AvatarUrl,
}
}
Binary file added public/container-errored.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/container-healthy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/container-list-all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/container-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/container-started.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/container-stopped.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/container-unhealthy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d7c0ca

Please sign in to comment.