Skip to content

Conversation

@yubiuser
Copy link
Owner

@yubiuser yubiuser commented Sep 8, 2023

Breaking

  • Move image location to ghcr.io/yubiuser/docker-event-monitor:latest

New features

  • Add SMTP reporter
  • Add SERVER_TAG feature

Improvements

  • Use global variable for arguments to avoid passing pointers
  • Simplifies waitgroup logic. Removes the need to pass the waitgroup pointer down in every function
  • Handle the user-configurable delay conditionally
  • Restructure title/message and add docker compose context and service names
  • switch logging from logrus to zerolog

Fixes

  • Fix mod.go version. Must be in format x.y, not x.y.z
  • Enable APIVersionNegotiation for docker connection

CI:

  • Use multiple runners to build images for different architectures (cuts down building a lot)
  • Housekeeping: delete PR images after closing and all untagged-images that are not part of an multi-arch image
  • Update Dependencies

yubiuser and others added 24 commits September 8, 2023 16:46
Sync main back into development
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4.1.1 to 4.2.1.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v4.1.1...v4.2.1)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3.6.0...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…pment/docker/build-push-action-4.2.1

Bump docker/build-push-action from 4.1.1 to 4.2.1
…pment/actions/checkout-4.0.0

Bump actions/checkout from 3.6.0 to 4.0.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4.2.1 to 5.0.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v4.2.1...v5.0.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.10.0 to 3.0.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@v2.10.0...v3.0.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](docker/metadata-action@v4...v5)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [docker/login-action](https://github.com/docker/login-action) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v2.2.0...v3.0.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…pment/docker/build-push-action-5.0.0

Bump docker/build-push-action from 4.2.1 to 5.0.0
…pment/docker/setup-buildx-action-3.0.0

Bump docker/setup-buildx-action from 2.10.0 to 3.0.0
…pment/docker/metadata-action-5

Bump docker/metadata-action from 4 to 5
…pment/docker/login-action-3.0.0

Bump docker/login-action from 2.2.0 to 3.0.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](docker/setup-qemu-action@v2.2.0...v3.0.0)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…pment/docker/setup-qemu-action-3.0.0

Bump docker/setup-qemu-action from 2.2.0 to 3.0.0
Signed-off-by: Christian König <[email protected]>
…d improve readability

Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
@yubiuser yubiuser changed the title vNext v1.2.0 Sep 22, 2023
@DL6ER
Copy link
Collaborator

DL6ER commented Sep 23, 2023

I tested the SMTP feature and confirmed it working. I wondered if it is a good choice to force the mail_from wo also be the SMTP login name, I think this should be changed. Reasoning: I use several automated services that are capable of altering me via email (urlwatch, watchtower, ...). Currently, they all use the same SMTP account and simply send from different addresses so I can get this easily sorted into folders in my INBOX. For docker-event-monitor I had to create a new mailbox to achieve the same. Just a suggestion.

@DL6ER
Copy link
Collaborator

DL6ER commented Sep 23, 2023

This is how, e.g., watchtower does it:

      WATCHTOWER_NOTIFICATIONS: email
      WATCHTOWER_NOTIFICATION_EMAIL_FROM: ...                      <----
      WATCHTOWER_NOTIFICATION_EMAIL_TO: ...
      WATCHTOWER_NOTIFICATION_EMAIL_DELAY: 2
      WATCHTOWER_NOTIFICATION_EMAIL_SERVER: ...
      WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: 587
      WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ...               <----
      WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ...
      WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG: my-server-name

This prompts an additional suggestion, issue #35 incoming :-)

@DL6ER DL6ER mentioned this pull request Sep 23, 2023
DL6ER and others added 2 commits September 23, 2023 14:22
Signed-off-by: Christian König <[email protected]>
yubiuser and others added 29 commits January 24, 2024 19:43
Restructure title/message and add docker compose context and service names (if available)
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Update artifacts upload/download to v4
Bumps [actions/delete-package-versions](https://github.com/actions/delete-package-versions) from 4.1.1 to 5.0.0.
- [Release notes](https://github.com/actions/delete-package-versions/releases)
- [Commits](actions/delete-package-versions@v4.1.1...v5.0.0)

---
updated-dependencies:
- dependency-name: actions/delete-package-versions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…pment/actions/delete-package-versions-5.0.0

Bump actions/delete-package-versions from 4.1.1 to 5.0.0
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…pment/actions/upload-artifact-4.3.0

Bump actions/upload-artifact from 4.2.0 to 4.3.0
Signed-off-by: Christian König <[email protected]>
Enable APIVersionNegotiation for docker connection
Signed-off-by: Christian König <[email protected]>
Push and merge digests on release
@yubiuser yubiuser merged commit cf179db into main Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants