docker-swarm #74
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: .
|
||||
|
||||
16
compose.yml
16
compose.yml
@@ -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: .
|
||||
|
||||
Reference in New Issue
Block a user