7 Commits
0.2.0 ... 0.2.1

Author SHA1 Message Date
e98b8e6b8c Version 0.2.1 2025-08-17 12:38:05 +01:00
876b0363c0 Merge pull request #69 from nikdoof/renovate/actions-checkout-5.x
Update actions/checkout action to v5
2025-08-17 12:37:05 +01:00
d0c18a1d00 Add default task 2025-08-17 12:35:25 +01:00
b056d6328d Add missing var in the example configuration 2025-08-17 12:33:39 +01:00
40a263686d Add example deployment for Flux 2025-08-17 12:31:51 +01:00
5f1e5508f0 Correct default port for Docker 2025-08-17 12:28:22 +01:00
renovate[bot]
6f36caf6e1 Update actions/checkout action to v5 2025-08-17 11:25:44 +00:00
9 changed files with 71 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ jobs:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Install Task
uses: arduino/setup-task@v2
with:

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v5

View File

@@ -16,5 +16,5 @@ RUN --mount=type=cache,target=/root/.cache/uv \
FROM python:${PYTHON_VERSION}-slim-bookworm
COPY --from=builder --chown=app:app /app /app
ENV PATH="/app/.venv/bin:$PATH"
EXPOSE 80/tcp
EXPOSE 5000/tcp
CMD ["smsbot"]

View File

@@ -1,5 +1,10 @@
version: 3
tasks:
default:
deps:
- python:tests
- python:lint
python:tests:
desc: Run Python tests
cmds:

5
docs/examples/README.md Normal file
View File

@@ -0,0 +1,5 @@
# Example deployments
Examples of how to deploy SMSBot.
* [Flux HelmRelease](flux-helmrelease.yaml) - An example Flux `HelmRelease` using a common chart for basic deployment.

View File

@@ -13,3 +13,4 @@ bot_token = BOT_TOKEN
[twilio]
account_sid = TWILIO_ACCOUNT_SID
auth_token = TWILIO_AUTH_TOKEN
from_number = +12345678901

View File

@@ -0,0 +1,55 @@
---
# yaml-language-server: $schema=https://nikdoof.github.io/flux-gitops/schemas/source.toolkit.fluxcd.io/helmrepository_v1.json
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: nikdoof
namespace: flux-system
spec:
interval: 4h
url: https://nikdoof.github.io/helm-charts/
---
# yaml-language-server: $schema=https://nikdoof.github.io/flux-gitops/schemas/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: smsbot
spec:
interval: 12h
chart:
spec:
chart: common-chart
version: 1.2.3
sourceRef:
kind: HelmRepository
name: nikdoof
namespace: flux-system
interval: 12h
values:
global:
nameOverride: smsbot
image:
repository: ghcr.io/nikdoof/smsbot
tag: 0.2.0
imagePullPolicy: IfNotPresent
controller:
strategy: Recreate
annotations:
secret.reloader.stakater.com/reload: "smsbot-secrets"
envFrom:
- secretRef:
name: smsbot-secrets
service:
main:
ports:
http:
port: 5000
ingress:
main:
enabled: true
hosts:
- host: smsbot-webhooks.example.com
paths:
- path: /
pathType: Prefix

View File

@@ -1,6 +1,6 @@
[project]
name = "smsbot"
version = "0.2.0"
version = "0.2.1"
description = "A simple Telegram bot to receive SMS messages."
authors = [{ name = "Andrew Williams", email = "andy@tensixtyone.com" }]
license = { text = "MIT" }

2
uv.lock generated
View File

@@ -592,7 +592,7 @@ wheels = [
[[package]]
name = "smsbot"
version = "0.2.0"
version = "0.2.1"
source = { editable = "." }
dependencies = [
{ name = "flask", extra = ["async"] },