Merge pull request 'docker-swarm' (#74) from docker-swarm into main
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 3m8s
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 3m8s
Reviewed-on: #74
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: gitea.lucids-cove.duckdns.org
|
REGISTRY: gitea.lucids-cove.duckdns.org
|
||||||
OWNER: lcm
|
OWNER: wkc
|
||||||
IMAGE_NAME: no-twitter-bot
|
IMAGE_NAME: no-twitter-bot
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -18,7 +18,6 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
node-version: [20.x]
|
node-version: [20.x]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: "Base requirements"
|
- name: "Base requirements"
|
||||||
run: |
|
run: |
|
||||||
# packages
|
# packages
|
||||||
@@ -26,6 +25,7 @@ jobs:
|
|||||||
# ansible collections
|
# ansible collections
|
||||||
ansible-galaxy collection install community.general --force
|
ansible-galaxy collection install community.general --force
|
||||||
ansible-galaxy collection install ansible.posix --force
|
ansible-galaxy collection install ansible.posix --force
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Enable Corepack
|
- name: Enable Corepack
|
||||||
run: npm install -g corepack && corepack enable
|
run: npm install -g corepack && corepack enable
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
- name: Log into registry ${{ env.REGISTRY }}
|
||||||
|
|||||||
@@ -1,9 +1,20 @@
|
|||||||
services:
|
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:
|
ports:
|
||||||
- "3000:80"
|
- "3000:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ".:/usr/src"
|
- ".:/usr/src"
|
||||||
env_file:
|
|
||||||
- .env.bot.dev
|
|
||||||
command: npm run dev
|
command: npm run dev
|
||||||
|
|||||||
@@ -1,4 +1,18 @@
|
|||||||
services:
|
services:
|
||||||
bot:
|
no-twitter-bot:
|
||||||
env_file:
|
image: gitea.lucids-cove.duckdns.org/wkc/no-twitter-bot:latest
|
||||||
- .env.bot.prod
|
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:
|
services:
|
||||||
bot:
|
no-twitter-bot:
|
||||||
|
image: gitea.lucids-cove.duckdns.org/wkc/no-twitter-bot:latest
|
||||||
container_name: no-twitter-bot
|
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:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
|||||||
Reference in New Issue
Block a user