Compare commits

..

13 Commits
v2.0.0 ... main

Author SHA1 Message Date
Félix MARQUET
8550fb045c Merge pull request #22 from BreizhHardware/dev
Update dependencies
2025-06-16 10:39:33 +02:00
Félix MARQUET
bf35608f71 Update .github/workflows/dependabot-build.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-16 10:32:22 +02:00
Félix MARQUET
b842d104c7 Merge pull request #20 from BreizhHardware/dependabot/cargo/dev/reqwest-0.12.20
build(deps): bump reqwest from 0.11.27 to 0.12.20
2025-06-16 10:08:33 +02:00
dependabot[bot]
b22351e77e build(deps): bump reqwest from 0.11.27 to 0.12.20
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.27 to 0.12.20.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.27...v0.12.20)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-version: 0.12.20
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-16 08:04:33 +00:00
Félix MARQUET
10d8a23897 Merge pull request #21 from BreizhHardware/dependabot/cargo/dev/rusqlite-0.36.0
build(deps): bump rusqlite from 0.29.0 to 0.36.0
2025-06-16 10:03:22 +02:00
Félix MARQUET
4e54b557b0 Merge pull request #19 from BreizhHardware/dependabot/cargo/dev/env_logger-0.11.8
build(deps): bump env_logger from 0.10.2 to 0.11.8
2025-06-16 10:01:33 +02:00
dependabot[bot]
a92caf5e37 build(deps): bump rusqlite from 0.29.0 to 0.36.0
Bumps [rusqlite](https://github.com/rusqlite/rusqlite) from 0.29.0 to 0.36.0.
- [Release notes](https://github.com/rusqlite/rusqlite/releases)
- [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md)
- [Commits](https://github.com/rusqlite/rusqlite/compare/v0.29.0...v0.36.0)

---
updated-dependencies:
- dependency-name: rusqlite
  dependency-version: 0.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-16 07:59:11 +00:00
dependabot[bot]
f2a6d4f0de build(deps): bump env_logger from 0.10.2 to 0.11.8
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.10.2 to 0.11.8.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.2...v0.11.8)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-version: 0.11.8
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-16 07:56:05 +00:00
Félix MARQUET
08bf34104a update(create_dev): add condition to skip jobs for Dependabot pull requests 2025-06-16 09:54:24 +02:00
Félix MARQUET
ff3e00eb4e add(dependabot): create build check workflow for Dependabot pull requests 2025-06-16 09:51:13 +02:00
Félix MARQUET
802081937f Merge pull request #18 from BreizhHardware/dev
Rust rewrite
2025-06-16 09:33:18 +02:00
Félix MARQUET
f52f505e38 update(README): simplify Docker image description and remove unused DB_PATH entry 2025-06-16 09:28:45 +02:00
Félix MARQUET
de60020b01 Merge pull request #13 from BreizhHardware/dev
fix(dependabot): ensure updates target the dev branch
2025-06-10 11:47:55 +02:00
5 changed files with 498 additions and 234 deletions

View File

@@ -7,6 +7,7 @@ on:
jobs:
build-binary:
if: ${{ github.actor != 'dependabot[bot]' && !startsWith(github.ref, 'refs/heads/dependabot/') }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -53,6 +54,7 @@ jobs:
path: release/github-ntfy
docker-build-push:
if: ${{ github.actor != 'dependabot[bot]' && !startsWith(github.ref, 'refs/heads/dependabot/') }}
needs: [build-binary]
runs-on: ubuntu-latest
steps:

52
.github/workflows/dependabot-build.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: Dependabot Build Check
on:
pull_request:
branches: [dev]
permissions:
contents: read
pull-requests: read
jobs:
build:
if: ${{ startsWith(github.ref, 'refs/heads/dependabot/') || github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Installer Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
override: true
- name: Installer cross
run: cargo install cross
- name: Créer Cross.toml pour spécifier OpenSSL vendored
run: |
cat > Cross.toml << 'EOF'
[build.env]
passthrough = [
"RUSTFLAGS",
"OPENSSL_STATIC",
"OPENSSL_NO_VENDOR"
]
EOF
- name: Construire avec cross et OpenSSL vendored
env:
OPENSSL_STATIC: 1
RUSTFLAGS: "-C target-feature=+crt-static"
OPENSSL_NO_VENDOR: 0
run: |
cross build --release --target x86_64-unknown-linux-musl --features vendored-openssl
- name: Afficher des informations de débogage
run: |
echo "Acteur: ${{ github.actor }}"
echo "Référence de la branche: ${{ github.head_ref }}"
echo "Event name: ${{ github.event_name }}"

635
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -12,12 +12,12 @@ vendored-openssl = ["openssl/vendored"]
[dependencies]
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.11", features = ["json", "blocking"] }
rusqlite = { version = "0.29", features = ["bundled"] }
reqwest = { version = "0.12", features = ["json", "blocking"] }
rusqlite = { version = "0.36", features = ["bundled"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
log = "0.4"
env_logger = "0.10"
env_logger = "0.11"
dotenv = "0.15"
chrono = "0.4"
warp = "0.3"

View File

@@ -15,7 +15,7 @@
### Docker (recommended)
Use our multi-architecture Docker image, which automatically supports amd64, arm64 and armv7:
Use our Docker image, which automatically supports amd64, arm64 and armv7:
```yaml
services:
@@ -34,7 +34,6 @@ services:
- GOTIFY_TOKEN= # Required if gotify is used
- DISCORD_WEBHOOK_URL= # Required if discord is used
- SLACK_WEBHOOK_URL= # Required if Slack is used
- DB_PATH=/data # Database path
volumes:
- /path/to/data:/data
ports:
@@ -64,39 +63,19 @@ Run
./target/release/github-ntfy
```
## REST API
The application exposes a REST API on port 8080 to manage watched repositories:
Endpoint
Method
Description
/app_repo
POST
Add a GitHub repository to watch
/app_docker_repo
POST
Add a Docker repository to watch
/watched_repos
GET
List all watched GitHub repositories
/watched_docker_repos
GET
List all watched Docker repositories
/delete_repo
POST
Delete a GitHub repository
/delete_docker_repo
POST
Delete a Docker repository
## Version Notes
- v2.0: Complete rewrite in Rust for better performance and reduced resource consumption
- v1.5: Stable Python version
- [v1.7.1](https://github.com/BreizhHardware/ntfy_alerts/tree/v1.7.2): Stable Python version
## Configuration
The GitHub token (GHNTFY_TOKEN) needs to have the following permissions: repo, read:org and read:user.
## TODO
- [ ] Add support for multi achitecture Docker images
- [ ] Rework web interface
- [ ] Add support for more notification services (Telegram, Matrix, etc.)
- [ ] Add web oneboarding instead of using environment variables
## Author
👤 BreizhHardware