fix: copy compose file to server on deploy; add readme
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m41s
All checks were successful
Deploy / build-and-deploy (push) Successful in 1m41s
This commit is contained in:
@@ -29,10 +29,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker save barabingo:latest | gzip > /tmp/barabingo.tar.gz
|
docker save barabingo:latest | gzip > /tmp/barabingo.tar.gz
|
||||||
|
|
||||||
- name: Copy image to server
|
- name: Copy files to server
|
||||||
run: |
|
run: |
|
||||||
scp /tmp/barabingo.tar.gz root@barabingo:/tmp/barabingo.tar.gz
|
scp /tmp/barabingo.tar.gz docker-compose.yml root@barabingo:/opt/barabingo/
|
||||||
|
|
||||||
- name: Deploy on server
|
- name: Deploy on server
|
||||||
run: |
|
run: |
|
||||||
ssh root@barabingo 'cd /opt/barabingo && docker load < /tmp/barabingo.tar.gz && docker compose down --remove-orphans 2>/dev/null; docker compose up -d && rm -f /tmp/barabingo.tar.gz && docker image prune -f'
|
ssh root@barabingo 'cd /opt/barabingo && docker load < barabingo.tar.gz && docker compose down --remove-orphans 2>/dev/null; docker compose up -d && rm -f barabingo.tar.gz && docker image prune -f'
|
||||||
|
|||||||
59
README.md
59
README.md
@@ -1,36 +1,49 @@
|
|||||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
# BaraBingo 🎮
|
||||||
|
|
||||||
## Getting Started
|
Chaotic bingo for Barotrauma crews. Mark the madness as it happens.
|
||||||
|
|
||||||
First, run the development server:
|
## Features
|
||||||
|
|
||||||
|
- **Bingo grid** — mark cells when chaos moments happen in-game
|
||||||
|
- **Sound effects** — each cell plays a unique sound (honk, alarm, explosion...)
|
||||||
|
- **Custom OGG uploads** — add your own sounds per cell
|
||||||
|
- **Emoji picker** — pick the perfect emoji for each bingo cell
|
||||||
|
- **Admin panel** — create campaigns, manage bingo items
|
||||||
|
- **Live updates** — see who marks what in real-time via polling
|
||||||
|
- **Crew activity log** — time-stamped feed of all marks
|
||||||
|
- **Submarine status panel** — hull, reactor, O₂ gauges that degrade with chaos
|
||||||
|
- **Bingo detection** — rows, columns, diagonals, with celebration modal
|
||||||
|
- **Chaos meter** — from "Sub stable" to "SUB DESTROYED"
|
||||||
|
|
||||||
|
## Tech
|
||||||
|
|
||||||
|
- **Next.js 16** (App Router + Turbopack)
|
||||||
|
- **SQLite** via better-sqlite3 + Drizzle ORM
|
||||||
|
- **Tailwind CSS v4** with dark submarine theme
|
||||||
|
- **Web Audio API** for synthesized sound effects
|
||||||
|
- **Radix UI** primitives
|
||||||
|
- **Docker** — multi-stage build, `output: "standalone"`
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
npm install
|
||||||
npm run dev
|
npm run dev
|
||||||
# or
|
|
||||||
yarn dev
|
|
||||||
# or
|
|
||||||
pnpm dev
|
|
||||||
# or
|
|
||||||
bun dev
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
First user to register automatically gets admin rights.
|
||||||
|
|
||||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
## Docker
|
||||||
|
|
||||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
```bash
|
||||||
|
docker build -t barabingo .
|
||||||
|
docker run -d -p 80:3000 -v ./data:/app/data -v ./uploads:/app/public/uploads barabingo
|
||||||
|
```
|
||||||
|
|
||||||
## Learn More
|
## CI/CD
|
||||||
|
|
||||||
To learn more about Next.js, take a look at the following resources:
|
Push to `main`/`master` → Gitea Actions builds image and deploys to `barabingo` (Tailscale).
|
||||||
|
|
||||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
## License
|
||||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
||||||
|
|
||||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
MIT
|
||||||
|
|
||||||
## Deploy on Vercel
|
|
||||||
|
|
||||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
||||||
|
|
||||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user