Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
51f0fa7250
|
|||
|
8b0ad4effa
|
|||
|
7ffa8e7789
|
|||
|
|
1e482ac330
|
||
|
0352a7ff22
|
|||
|
71731015ad
|
|||
|
db3fb9d32e
|
|||
|
299801e8c3
|
|||
|
1e28219ad8
|
|||
|
9557d4ec8f
|
|||
|
b0611ff035
|
|||
|
8ad67d4dcc
|
|||
|
2d236dc9cd
|
|||
|
0af2b07d09
|
|||
|
a60cc911d0
|
|||
|
e39dd51967
|
|||
|
4ca2e4cc79
|
|||
|
c8e2494b22
|
|||
|
01a682635b
|
|||
|
775445a02b
|
|||
|
71d620c163
|
|||
|
1497d959bf
|
|||
|
8baec677fc
|
|||
|
926f03a525
|
32
.gitea/workflows/build-docker-push.yml
Normal file
32
.gitea/workflows/build-docker-push.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: build-docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- staging
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.DOCKER_REGISTRY_FQDN }}
|
||||
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver: docker
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: ${{ vars.DOCKER_REGISTRY_FQDN }}/${{ vars.DOCKER_IMAGE_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ gitea.REF_NAME }}
|
||||
secrets: |
|
||||
GIT_AUTH_TOKEN=${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
||||
30
.gitea/workflows/build-docker-release.yml
Normal file
30
.gitea/workflows/build-docker-release.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: build-docker-release
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.DOCKER_REGISTRY_FQDN }}
|
||||
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver: docker
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: ${{ vars.DOCKER_REGISTRY_FQDN }}/${{ vars.DOCKER_IMAGE_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ gitea.REF_NAME }},${{ vars.DOCKER_REGISTRY_FQDN }}/${{ vars.DOCKER_IMAGE_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:latest
|
||||
secrets: |
|
||||
GIT_AUTH_TOKEN=${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
||||
28
.gitea/workflows/build-docker.yml
Normal file
28
.gitea/workflows/build-docker.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: build-docker
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.DOCKER_REGISTRY_FQDN }}
|
||||
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver: docker
|
||||
- name: Build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: false
|
||||
tags: ${{ vars.DOCKER_REGISTRY_FQDN }}/${{ vars.DOCKER_IMAGE_USERNAME }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ gitea.REF_NAME }}
|
||||
11
README.md
11
README.md
@@ -105,6 +105,17 @@ contain data that shouldn't normally be logged.
|
||||
|
||||
As an experiment, Docker deployment option has been added.
|
||||
|
||||
### Starting the bot
|
||||
|
||||
1. Install MongoDB using the [official installation manual](https://www.mongodb.com/docs/manual/installation)
|
||||
2. Download
|
||||
the [configuration example file](https://git.end-play.xyz/HoloUA/Discord/src/branch/main/config_example.json) and
|
||||
store it somewhere you would like your bot to access it
|
||||
3. Complete the [configuration](#Configuration) step for this file
|
||||
4. `docker run -d -v /path/to/config.json:/app/config.json --name holoua-discord git.end-play.xyz/holoua/holoua-discord`
|
||||
|
||||
## Building Docker images [Experimental]
|
||||
|
||||
### Building the image
|
||||
|
||||
1. `git clone https://git.end-play.xyz/HoloUA/Discord.git`
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# Waifu pics related dependencies (not listed directly by waifupics)
|
||||
aiohttp>=3.10.0
|
||||
requests>=2.32.2
|
||||
aiohttp>=3.10.0,<4.0.0
|
||||
requests>=2.32.2,<3.0.0
|
||||
|
||||
aiofiles~=24.1.0
|
||||
apscheduler>=3.10.0
|
||||
aiofiles>=23.0.0,<26.0.0
|
||||
apscheduler>=3.0.0,<4.0.0
|
||||
async_pymongo==0.1.11
|
||||
libbot[speed,pycord,cache]==4.4.0
|
||||
libbot[speed,pycord,cache]==4.5.0
|
||||
mongodb-migrations==1.3.1
|
||||
pymemcache~=4.0.0
|
||||
redis~=6.2.0
|
||||
ujson~=5.10.0
|
||||
pymemcache>=4.0.0,<5.0.0
|
||||
redis>=7.0.0,<8.0.0
|
||||
ujson>=5.0.0,<6.0.0
|
||||
WaifuPicsPython==0.2.0
|
||||
Reference in New Issue
Block a user