mirror of
https://github.com/nikdoof/smsbot.git
synced 2025-12-13 10:02:15 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
e98b8e6b8c
|
|||
| 876b0363c0 | |||
|
d0c18a1d00
|
|||
|
b056d6328d
|
|||
|
40a263686d
|
|||
|
5f1e5508f0
|
|||
|
|
6f36caf6e1 |
2
.github/workflows/lint.yaml
vendored
2
.github/workflows/lint.yaml
vendored
@@ -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:
|
||||
|
||||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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
5
docs/examples/README.md
Normal 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.
|
||||
@@ -13,3 +13,4 @@ bot_token = BOT_TOKEN
|
||||
[twilio]
|
||||
account_sid = TWILIO_ACCOUNT_SID
|
||||
auth_token = TWILIO_AUTH_TOKEN
|
||||
from_number = +12345678901
|
||||
55
docs/examples/flux-helmrelease.yaml
Normal file
55
docs/examples/flux-helmrelease.yaml
Normal 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
|
||||
|
||||
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user