refactor: change base url to codeberg.org

This commit is contained in:
Felipe M 2025-02-21 08:14:39 +01:00
parent 361175d6af
commit a15223a5c2
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
6 changed files with 16 additions and 18 deletions

View file

@ -1,8 +1,8 @@
version: 2 version: 2
gitea_urls: gitea_urls:
api: https://git.nakama.town/api/v1 api: https://codeberg.org/api/v1
download: https://git.nakama.town download: https://codeberg.org
before: before:
hooks: hooks:
@ -51,7 +51,7 @@ archives:
dockers: dockers:
- image_templates: - image_templates:
- &amd64_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-amd64" - &amd64_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-amd64"
use: buildx use: buildx
dockerfile: &dockerfile Containerfile dockerfile: &dockerfile Containerfile
goos: linux goos: linux
@ -60,7 +60,7 @@ dockers:
- "--pull" - "--pull"
- "--platform=linux/amd64" - "--platform=linux/amd64"
- image_templates: - image_templates:
- &arm64_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-arm64" - &arm64_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-arm64"
use: buildx use: buildx
dockerfile: *dockerfile dockerfile: *dockerfile
goos: linux goos: linux
@ -69,7 +69,7 @@ dockers:
- "--pull" - "--pull"
- "--platform=linux/arm64" - "--platform=linux/arm64"
- image_templates: - image_templates:
- &armv7_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-armv7" - &armv7_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-armv7"
use: buildx use: buildx
dockerfile: *dockerfile dockerfile: *dockerfile
goos: linux goos: linux
@ -80,12 +80,12 @@ dockers:
- "--platform=linux/arm/v7" - "--platform=linux/arm/v7"
docker_manifests: docker_manifests:
- name_template: "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}" - name_template: "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}"
image_templates: image_templates:
- *amd64_image - *amd64_image
- *arm64_image - *arm64_image
- *armv7_image - *armv7_image
# - name_template: "git.nakama.town/fmartingr/smtp2shoutrrr:latest" # - name_template: "codeberg.org/fmartingr/smtp2shoutrrr:latest"
# image_templates: # image_templates:
# - *amd64_image # - *amd64_image
# - *arm64_image # - *arm64_image
@ -94,7 +94,7 @@ docker_manifests:
nfpms: nfpms:
- maintainer: Felipe Martin <me@fmartingr.com> - maintainer: Felipe Martin <me@fmartingr.com>
description: SMTP server to forward messages to shoutrrr endpoints description: SMTP server to forward messages to shoutrrr endpoints
homepage: https://git.nakama.town/fmartingr/smtp2shoutrrr homepage: https://codeberg.org/fmartingr/smtp2shoutrrr
license: AGPL-3.0 license: AGPL-3.0
formats: formats:
- deb - deb

View file

@ -14,7 +14,7 @@ FROM_MAKEFILE := y
CONTAINERFILE_NAME := Containerfile CONTAINERFILE_NAME := Containerfile
CONTAINER_ALPINE_VERSION := 3.20 CONTAINER_ALPINE_VERSION := 3.20
CONTAINER_SOURCE_URL := "https://git.nakama.town/fmartingr/${PROJECT_NAME}" CONTAINER_SOURCE_URL := "https://codeberg.org/fmartingr/${PROJECT_NAME}"
CONTAINER_MAINTAINER := "Felipe Martin <me@fmartingr.com>" CONTAINER_MAINTAINER := "Felipe Martin <me@fmartingr.com>"
CONTAINER_BIN_NAME := ${PROJECT_NAME} CONTAINER_BIN_NAME := ${PROJECT_NAME}

View file

@ -1,4 +1,4 @@
# smtp2Shoutrrr # smtp2shoutrrr
A simple SMTP server that forwards incoming emails to a [Shoutrrr supported service](https://containrrr.dev/shoutrrr/). A simple SMTP server that forwards incoming emails to a [Shoutrrr supported service](https://containrrr.dev/shoutrrr/).
@ -33,13 +33,13 @@ Target = "ntfy://ntfy.sh/catch-all-topic?tags=unmatched"
### From releases ### From releases
- Grab the latest release from the [releases page](https://git.nakama.town/fmartingr/smtp2shoutrrr/releases) - Grab the latest release from the [releases page](https://codeberg.org/fmartingr/smtp2shoutrrr/releases)
- Put the configuration file in the same directory as the binary - Put the configuration file in the same directory as the binary
- Run the binary for your appropriate platform - Run the binary for your appropriate platform
### From source (development) ### From source (development)
- Clone [this repository](https://git.nakama.town/fmartingr/smtp2shoutrrr) - Clone [this repository](https://codeberg.org/fmartingr/smtp2shoutrrr)
- Put the configuration file in the repository folder - Put the configuration file in the repository folder
- Run `make quick-run` - Run `make quick-run`
@ -51,7 +51,7 @@ Target = "ntfy://ntfy.sh/catch-all-topic?tags=unmatched"
```bash ```bash
docker run -v /path/to/config.toml:/config.toml \ docker run -v /path/to/config.toml:/config.toml \
-p 11025:11025 \ -p 11025:11025 \
git.nakama.town/fmartingr/smtp2shoutrrr:latest codeberg.org/fmartingr/smtp2shoutrrr:latest
``` ```
## Development ## Development

View file

@ -10,7 +10,7 @@ import (
"git.nakama.town/fmartingr/gotoolkit/encoding" "git.nakama.town/fmartingr/gotoolkit/encoding"
"github.com/emersion/go-sasl" "github.com/emersion/go-sasl"
"git.nakama.town/fmartingr/smtp2shoutrrr" "codeberg.org/fmartingr/smtp2shoutrrr"
) )
// The ANONYMOUS mechanism name. // The ANONYMOUS mechanism name.

View file

@ -5,10 +5,10 @@ import (
"log/slog" "log/slog"
"os" "os"
"codeberg.org/fmartingr/smtp2shoutrrr"
"git.nakama.town/fmartingr/gotoolkit/encoding" "git.nakama.town/fmartingr/gotoolkit/encoding"
"git.nakama.town/fmartingr/gotoolkit/model" "git.nakama.town/fmartingr/gotoolkit/model"
"git.nakama.town/fmartingr/gotoolkit/service" "git.nakama.town/fmartingr/gotoolkit/service"
"git.nakama.town/fmartingr/smtp2shoutrrr"
_ "golang.org/x/crypto/x509roots/fallback" _ "golang.org/x/crypto/x509roots/fallback"
) )

4
go.mod
View file

@ -1,4 +1,4 @@
module git.nakama.town/fmartingr/smtp2shoutrrr module codeberg.org/fmartingr/smtp2shoutrrr
go 1.23.3 go 1.23.3
@ -17,5 +17,3 @@ require (
github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/pelletier/go-toml/v2 v2.2.3 // indirect
golang.org/x/sys v0.22.0 // indirect golang.org/x/sys v0.22.0 // indirect
) )
//replace git.nakama.town/fmartingr/gotoolkit => ../gotoolkit