Apply stashed changes after pulling from origin
Some checks are pending
Deploy Cletus Bot / deploy (push) Waiting to run

This commit is contained in:
roberts 2025-05-09 17:50:58 -05:00
parent dfc8413302
commit 9fc01c4563
4 changed files with 53 additions and 2 deletions

View file

@ -1 +1,3 @@
node_modules
db
.git

View file

@ -0,0 +1,28 @@
name: Deploy Cletus Bot
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: docker
steps:
- name: 📥 Checkout code
uses: actions/checkout@v3
- name: 🐢 Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: 📦 Install dependencies
run: npm install
- name: 🧱 Build and Deploy with Compose
run: |
docker compose down || true
docker compose up -d --build
- name: 📄 Show logs
run: docker logs --since 10s cletus-bot

4
.gitignore vendored
View file

@ -91,6 +91,7 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
<<<<<<< Updated upstream
# Node/npm
node_modules/
npm-debug.log
@ -98,3 +99,6 @@ npm-debug.log
.env
dist/
coverage/
=======
bot/db/
>>>>>>> Stashed changes

17
docker-compose.yml Normal file
View file

@ -0,0 +1,17 @@
version: '3.8'
services:
cletus-bot:
container_name: cletus-bot
build:
context: .
dockerfile: Dockerfile
platforms:
- linux/amd64
image: cletus-bot
restart: unless-stopped
volumes:
- ./bot/db:/app/bot/db
- ./bot/bot-tasks:/app/bot/bot-tasks
stdin_open: true
tty: true