commit
AAA
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..408e22e
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,44 @@
+version: 2
+
+# Keeps dependencies patched across the whole monorepo. Updates are grouped by
+# semver bump so you get a few tidy PRs a week instead of a flood of individual
+# ones. Weekly cadence; bump the interval to `daily` if you want them sooner.
+updates:
+ # JavaScript/TypeScript deps — root plus every workspace package. Uses the
+ # native `bun` ecosystem (GA since Feb 2025) so bun.lock is updated too.
+ - package-ecosystem: bun
+ directories:
+ - "/"
+ - "/apps/*"
+ - "/packages/*"
+ schedule:
+ interval: weekly
+ open-pull-requests-limit: 10
+ groups:
+ bun-minor-patch:
+ update-types: ["minor", "patch"]
+
+ # Rust deps for the Tauri desktop app.
+ - package-ecosystem: cargo
+ directory: "/apps/desktop/src-tauri"
+ schedule:
+ interval: weekly
+ open-pull-requests-limit: 10
+ groups:
+ cargo-minor-patch:
+ update-types: ["minor", "patch"]
+
+ # The actions pinned in .github/workflows (checkout, docker/*, setup-*, etc.).
+ - package-ecosystem: github-actions
+ directory: "/"
+ schedule:
+ interval: weekly
+ groups:
+ github-actions:
+ update-types: ["minor", "patch"]
+
+ # The base image in the root Dockerfile (oven/bun).
+ - package-ecosystem: docker
+ directory: "/"
+ schedule:
+ interval: weekly
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
new file mode 100644
index 0000000..36e483d
--- /dev/null
+++ b/.github/workflows/docker.yml
@@ -0,0 +1,64 @@
+name: docker
+
+# Builds the server image (root Dockerfile) and pushes it to Docker Hub.
+# - push to main -> tags `latest` and `main-<short-sha>`
+# - push a v* git tag -> semver tags, e.g. `1.2.3` and `1.2`
+# - manual run -> same as a main push
+#
+# Requires two repo secrets: DOCKERHUB_USERNAME and DOCKERHUB_TOKEN (a Docker
+# Hub *access token*, not your password — Account Settings > Security).
+on:
+ workflow_dispatch:
+
+env:
+ # The Docker Hub repository name (the part after your username). Change this
+ # if you want the image published under a different name.
+ IMAGE_NAME: doughmination-music
+
+jobs:
+ build-push:
+ runs-on: ubuntu-latest
+
+ steps:
+ # No lfs: the server image doesn't use the Git-LFS'd Discord SDK binaries
+ # (those are desktop-only), so pointer files are fine and the build is
+ # faster.
+ - uses: actions/checkout@v4
+
+ - uses: docker/setup-buildx-action@v3
+
+ - name: log in to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ # Derives the image name + the set of tags to push from the event that
+ # triggered the run (branch push vs version tag).
+ - name: derive tags
+ id: meta
+ uses: docker/metadata-action@v5
+ with:
+ images: docker.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
+ tags: |
+ type=raw,value=latest,enable={{is_default_branch}}
+ type=sha,prefix=main-,enable={{is_default_branch}}
+ type=semver,pattern={{version}}
+ type=semver,pattern={{major}}.{{minor}}
+
+ - name: build and push
+ uses: docker/build-push-action@v6
+ with:
+ context: .
+ file: ./Dockerfile
+ push: true
+ # amd64 covers most self-hosted servers. To also publish arm64 (e.g.
+ # for a Pi / ARM VPS), add `linux/arm64` here and a
+ # `docker/setup-qemu-action@v3` step above — note the arm64 leg builds
+ # under emulation, so it's noticeably slower.
+ platforms: linux/amd64
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
+ # Reuse layers between runs via the GitHub Actions cache.
+ cache-from: type=gha
+ cache-to: type=gha,mode=max