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
gitea_urls:
api: https://git.nakama.town/api/v1
download: https://git.nakama.town
api: https://codeberg.org/api/v1
download: https://codeberg.org
before:
hooks:
@ -51,7 +51,7 @@ archives:
dockers:
- image_templates:
- &amd64_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-amd64"
- &amd64_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-amd64"
use: buildx
dockerfile: &dockerfile Containerfile
goos: linux
@ -60,7 +60,7 @@ dockers:
- "--pull"
- "--platform=linux/amd64"
- image_templates:
- &arm64_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-arm64"
- &arm64_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-arm64"
use: buildx
dockerfile: *dockerfile
goos: linux
@ -69,7 +69,7 @@ dockers:
- "--pull"
- "--platform=linux/arm64"
- image_templates:
- &armv7_image "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}-armv7"
- &armv7_image "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}-armv7"
use: buildx
dockerfile: *dockerfile
goos: linux
@ -80,12 +80,12 @@ dockers:
- "--platform=linux/arm/v7"
docker_manifests:
- name_template: "git.nakama.town/fmartingr/smtp2shoutrrr:{{ .Version }}"
- name_template: "codeberg.org/fmartingr/smtp2shoutrrr:{{ .Version }}"
image_templates:
- *amd64_image
- *arm64_image
- *armv7_image
# - name_template: "git.nakama.town/fmartingr/smtp2shoutrrr:latest"
# - name_template: "codeberg.org/fmartingr/smtp2shoutrrr:latest"
# image_templates:
# - *amd64_image
# - *arm64_image
@ -94,7 +94,7 @@ docker_manifests:
nfpms:
- maintainer: Felipe Martin <me@fmartingr.com>
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
formats:
- deb

View file

@ -14,7 +14,7 @@ FROM_MAKEFILE := y
CONTAINERFILE_NAME := Containerfile
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_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/).
@ -33,13 +33,13 @@ Target = "ntfy://ntfy.sh/catch-all-topic?tags=unmatched"
### 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
- Run the binary for your appropriate platform
### 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
- Run `make quick-run`
@ -51,7 +51,7 @@ Target = "ntfy://ntfy.sh/catch-all-topic?tags=unmatched"
```bash
docker run -v /path/to/config.toml:/config.toml \
-p 11025:11025 \
git.nakama.town/fmartingr/smtp2shoutrrr:latest
codeberg.org/fmartingr/smtp2shoutrrr:latest
```
## Development

View file

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

View file

@ -5,10 +5,10 @@ import (
"log/slog"
"os"
"codeberg.org/fmartingr/smtp2shoutrrr"
"git.nakama.town/fmartingr/gotoolkit/encoding"
"git.nakama.town/fmartingr/gotoolkit/model"
"git.nakama.town/fmartingr/gotoolkit/service"
"git.nakama.town/fmartingr/smtp2shoutrrr"
_ "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
@ -17,5 +17,3 @@ require (
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
golang.org/x/sys v0.22.0 // indirect
)
//replace git.nakama.town/fmartingr/gotoolkit => ../gotoolkit