docker-swarm #74

Merged
werewolfkid merged 2 commits from docker-swarm into main 2025-10-15 13:34:42 -04:00
4 changed files with 47 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ on:
env:
REGISTRY: gitea.lucids-cove.duckdns.org
OWNER: lcm
OWNER: wkc
IMAGE_NAME: no-twitter-bot
jobs:
@@ -18,7 +18,6 @@ jobs:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: "Base requirements"
run: |
# packages
@@ -26,6 +25,7 @@ jobs:
# ansible collections
ansible-galaxy collection install community.general --force
ansible-galaxy collection install ansible.posix --force
- uses: actions/checkout@v4
- name: Enable Corepack
run: npm install -g corepack && corepack enable
- name: Log into registry ${{ env.REGISTRY }}

View File

@@ -1,9 +1,20 @@
services:
bot:
no-twitter-bot:
image: gitea.lucids-cove.duckdns.org/wkc/no-twitter-bot:latest
container_name: no-twitter-bot
environment:
- BOT_TOKEN=${BOT_TOKEN}
- BOT_MODE=${BOT_MODE}
- LOG_LEVEL=${LOG_LEVEL}
- DEBUG=${DEBUG}
- BOT_WEBHOOK=${BOT_WEBHOOK}
- BOT_WEBHOOK_SECRET=${BOT_WEBHOOK_SECRET}
- SERVER_HOST=${SERVER_HOST}
- SERVER_PORT=${SERVER_PORT}
- BOT_ADMINS=${BOT_ADMINS}
- GROUP_IDS=${GROUP_IDS}
ports:
- "3000:80"
volumes:
- ".:/usr/src"
env_file:
- .env.bot.dev
command: npm run dev

View File

@@ -1,4 +1,18 @@
services:
bot:
env_file:
- .env.bot.prod
no-twitter-bot:
image: gitea.lucids-cove.duckdns.org/wkc/no-twitter-bot:latest
container_name: no-twitter-bot
# env_file: stack.env
environment:
- BOT_TOKEN=${BOT_TOKEN}
- BOT_MODE=${BOT_MODE}
- LOG_LEVEL=${LOG_LEVEL}
- DEBUG=${DEBUG}
- BOT_WEBHOOK=${BOT_WEBHOOK}
- BOT_WEBHOOK_SECRET=${BOT_WEBHOOK_SECRET}
- SERVER_HOST=${SERVER_HOST}
- SERVER_PORT=${SERVER_PORT}
- BOT_ADMINS=${BOT_ADMINS}
- GROUP_IDS=${GROUP_IDS}
build:
context: .

View File

@@ -1,6 +1,18 @@
services:
bot:
no-twitter-bot:
image: gitea.lucids-cove.duckdns.org/wkc/no-twitter-bot:latest
container_name: no-twitter-bot
env_file: stack.env
# env_file: stack.env
environment:
- BOT_TOKEN=${BOT_TOKEN}
- BOT_MODE=${BOT_MODE}
- LOG_LEVEL=${LOG_LEVEL}
- DEBUG=${DEBUG}
- BOT_WEBHOOK=${BOT_WEBHOOK}
- BOT_WEBHOOK_SECRET=${BOT_WEBHOOK_SECRET}
- SERVER_HOST=${SERVER_HOST}
- SERVER_PORT=${SERVER_PORT}
- BOT_ADMINS=${BOT_ADMINS}
- GROUP_IDS=${GROUP_IDS}
build:
context: .