Apply stashed changes after pulling from origin
Some checks are pending
Deploy Cletus Bot / deploy (push) Waiting to run
Some checks are pending
Deploy Cletus Bot / deploy (push) Waiting to run
This commit is contained in:
parent
dfc8413302
commit
9fc01c4563
4 changed files with 53 additions and 2 deletions
|
|
@ -1 +1,3 @@
|
|||
node_modules
|
||||
node_modules
|
||||
db
|
||||
.git
|
||||
28
.forgejo/workflows/deploy.yml
Normal file
28
.forgejo/workflows/deploy.yml
Normal 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
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -91,10 +91,14 @@ fabric.properties
|
|||
# Android studio 3.1+ serialized cache file
|
||||
.idea/caches/build_file_checksums.ser
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
# Node/npm
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
.DS_Store
|
||||
.env
|
||||
dist/
|
||||
coverage/
|
||||
coverage/
|
||||
=======
|
||||
bot/db/
|
||||
>>>>>>> Stashed changes
|
||||
|
|
|
|||
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal 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
|
||||
Loading…
Reference in a new issue