Skip to content

Commit debac7d

Browse files
authored
Merge branch 'main' into statusroles
2 parents 71dee9f + 8fb5714 commit debac7d

File tree

115 files changed

+14537
-4265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+14537
-4265
lines changed
File renamed without changes.

tux/cogs/utility/snippets.py renamed to .archive/snippets.py

Lines changed: 307 additions & 186 deletions
Large diffs are not rendered by default.

.cursorrules

Lines changed: 0 additions & 171 deletions
This file was deleted.

.dockerignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
.devcontainer/
22
.env
3-
.git/
43
.github/
54
.venv/
65
.vscode/
6+
.cache/
7+
__pycache__/
8+
*.pyc
9+
assets/
10+
.archive/
11+
docs/
12+
docs-build/
13+
site/
14+
.markdownlint.yaml
15+
.mise.toml
16+
.python-version
17+
.pre-commit-config.yaml
18+
.gitignore
19+
.cursorrules
20+
.editorconfig

.editorconfig

Lines changed: 0 additions & 19 deletions
This file was deleted.

.env.example

Lines changed: 56 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,69 @@
1-
#
2-
# Required
3-
#
1+
# Tux Environment Configuration (.env.example)
2+
# -------------------------------------------
3+
# Copy this file to .env and fill in the values.
4+
# Do NOT commit your actual .env file to version control.
45

5-
# If in production mode:
6+
# Core Requirements
7+
# -----------------
8+
# These variables are fundamental and required depending on the mode.
69

7-
# DEV=False
10+
# Database URLs (Required: one depending on mode)
11+
# The application uses DEV_DATABASE_URL when run with '--dev' flag,
12+
# and PROD_DATABASE_URL otherwise (production mode).
13+
DEV_DATABASE_URL=""
814
PROD_DATABASE_URL=""
9-
PROD_TOKEN=""
1015

11-
# If in development mode:
16+
# Bot Tokens (Required: one depending on mode)
17+
# The application uses DEV_BOT_TOKEN when run with '--dev' flag,
18+
# and PROD_BOT_TOKEN otherwise (production mode).
19+
DEV_BOT_TOKEN=""
20+
PROD_BOT_TOKEN=""
1221

13-
# DEV=True
14-
DEV_DATABASE_URL=""
15-
DEV_TOKEN=""
22+
# Development Specific Settings
23+
# ---------------------------
24+
# These settings primarily affect development mode ('--dev').
25+
26+
# Cogs to ignore during development (Optional, comma-separated)
27+
# Example: DEV_COG_IGNORE_LIST="somecog,anothercog"
28+
DEV_COG_IGNORE_LIST="rolecount,mail,git" # Default ignores ATL-specific cogs
29+
30+
# Production Specific Settings
31+
# --------------------------
32+
# These settings primarily affect production mode (no '--dev' flag).
1633

17-
#
18-
# Optional
19-
#
34+
# Cogs to ignore in production (Optional, comma-separated)
35+
# Example: PROD_COG_IGNORE_LIST="debugcog"
36+
PROD_COG_IGNORE_LIST="rolecount,mail,git" # Default ignores ATL-specific cogs
2037

21-
INFLUXDB_TOKEN=""
22-
INFLUXDB_URL=""
23-
INFLUXDB_ORG=""
38+
# Optional Feature Configuration
39+
# ----------------------------
40+
# Fill these variables to enable optional integrations.
2441

25-
SENTRY_URL=""
42+
# Sentry (Error Tracking)
43+
# SENTRY_URL=""
2644

27-
PROD_COG_IGNORE_LIST="rolecount,mail" # These are ATL specific cogs that are not needed in Tux unless you are ATL
28-
DEV_COG_IGNORE_LIST=
45+
# InfluxDB (Metrics/Logging)
46+
# ------------------
2947

30-
GITHUB_APP_ID=
31-
GITHUB_CLIENT_ID=""
32-
GITHUB_CLIENT_SECRET=""
33-
GITHUB_PUBLIC_KEY=""
34-
GITHUB_INSTALLATION_ID=
48+
# INFLUXDB_TOKEN=""
49+
# INFLUXDB_URL=""
50+
# INFLUXDB_ORG=""
3551

36-
GITHUB_PRIVATE_KEY_BASE64=""
52+
# GitHub Integration
53+
# ------------------
54+
# These variables are used for the ATL GitHub integration that is is used for creating issues quickly.
55+
# You can safely ignore these until we have a proper way to guide using them multi guild/self hosted wise.
3756

38-
GITHUB_REPO_URL=
39-
GITHUB_REPO_OWNER=
40-
GITHUB_REPO=
57+
# GITHUB_APP_ID=
58+
# GITHUB_CLIENT_ID=""
59+
# GITHUB_CLIENT_SECRET=""
60+
# GITHUB_PUBLIC_KEY=""
61+
# GITHUB_INSTALLATION_ID=
62+
# GITHUB_PRIVATE_KEY_BASE64="" # Base64 encoded private key
63+
# GITHUB_REPO_URL=
64+
# GITHUB_REPO_OWNER=
65+
# GITHUB_REPO=
4166

42-
MAILCOW_API_KEY=
43-
MAILCOW_API_URL=
67+
# Mailcow Integration (Email related features)
68+
# MAILCOW_API_KEY=
69+
# MAILCOW_API_URL=

.github/renovate.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"timezone": "America/New_York",
4+
"schedule": ["* 0 * * 0"],
35
"extends": [
46
"config:recommended"
57
]

.github/workflows/docker-image.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,50 @@
1-
name: Create and Publish Docker Image CI
2-
1+
name: "GHCR - Build and Push Docker Image"
32

43
on:
54
push:
6-
branches: [ "main" ]
5+
branches: ["main"]
76
pull_request:
87

98
jobs:
10-
119
docker:
12-
1310
runs-on: ubuntu-latest
1411
permissions:
1512
contents: read
1613
packages: write
1714

1815
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0 # Fetch the full repository history including .git
20+
1921
- name: Docker meta
2022
id: meta
2123
uses: docker/metadata-action@v5
2224
with:
2325
images: |
24-
ghcr.io/allthingslinux/tux
26+
ghcr.io/allthingslinux/tux
2527
tags: |
2628
type=raw,value=latest,enable={{is_default_branch}}
2729
type=ref,event=pr
30+
2831
- name: Set up Docker Buildx
2932
uses: docker/setup-buildx-action@v3
33+
3034
- name: Login to GHCR
3135
if: github.event_name != 'pull_request'
3236
uses: docker/login-action@v3
3337
with:
3438
registry: ghcr.io
3539
username: ${{ github.actor }}
3640
password: ${{ secrets.GITHUB_TOKEN }}
41+
3742
- name: Build and push
3843
uses: docker/build-push-action@v6
3944
with:
4045
push: ${{ github.event_name != 'pull_request' }}
4146
tags: ${{ steps.meta.outputs.tags }}
4247
labels: ${{ steps.meta.outputs.labels }}
48+
build-args: |
49+
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
50+

0 commit comments

Comments
 (0)