mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-13 23:50:12 +00:00
Compare commits
No commits in common. "2e95a5b912e7645055a5a025af9bcb9f32bae109" and "6e8974d54b8603c29bde7dfdef240cc62b7b1a3b" have entirely different histories.
2e95a5b912
...
6e8974d54b
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,7 +8,6 @@ tubearchivist.env
|
|||||||
umami.env
|
umami.env
|
||||||
gitea.env
|
gitea.env
|
||||||
redditbot.env
|
redditbot.env
|
||||||
discord-bot.env
|
|
||||||
|
|
||||||
# example hooks
|
# example hooks
|
||||||
docker-hook.json
|
docker-hook.json
|
||||||
|
@ -72,14 +72,6 @@ services:
|
|||||||
- LETSENCRYPT_HOST=docs.tubearchivist.com
|
- LETSENCRYPT_HOST=docs.tubearchivist.com
|
||||||
networks:
|
networks:
|
||||||
- tubearchivist_network
|
- tubearchivist_network
|
||||||
discord-bot:
|
|
||||||
container_name: discord-bot
|
|
||||||
build: https://github.com/tubearchivist/discord-bot.git
|
|
||||||
restart: always
|
|
||||||
env_file:
|
|
||||||
- ./env/discord-bot.env
|
|
||||||
networks:
|
|
||||||
- tubearchivist_network
|
|
||||||
# backend postgres
|
# backend postgres
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15
|
image: postgres:15
|
||||||
|
1
env/discord-bot.sample.env
vendored
1
env/discord-bot.sample.env
vendored
@ -1 +0,0 @@
|
|||||||
BOT_TOKEN=xxxxxxxxxx
|
|
@ -45,26 +45,7 @@ class WebhookBase:
|
|||||||
"rebuild": [
|
"rebuild": [
|
||||||
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "docs"]
|
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "docs"]
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"jellyfin": {
|
|
||||||
"gh_user": "tubearchivist",
|
|
||||||
"gh_repo": "jellyfin",
|
|
||||||
"docker_user": "bbilly1",
|
|
||||||
"docker_repo": "tubearchivist-jf",
|
|
||||||
"build_release": [
|
|
||||||
"build", "--platform", "linux/amd64,linux/arm64",
|
|
||||||
"-t", "bbilly1/tubearchivist-jf",
|
|
||||||
"-t", "bbilly1/tubearchivist-jf:$VERSION", "--push"
|
|
||||||
],
|
|
||||||
"discord_release_hook": environ.get("GITHUB_RELEASE_HOOK_URL"),
|
|
||||||
},
|
|
||||||
"discord-bot": {
|
|
||||||
"gh_user": "tubearchivist",
|
|
||||||
"gh_repo": "discord-bot",
|
|
||||||
"rebuild": [
|
|
||||||
["docker", "compose", "-f", "../docker/docker-compose.yml", "up", "-d", "--build", "discord-bot"]
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
ROADMAP_HOOK_URL = environ.get("ROADMAP_HOOK_URL")
|
||||||
GH_HOOK_SECRET = environ.get("GH_HOOK_SECRET")
|
GH_HOOK_SECRET = environ.get("GH_HOOK_SECRET")
|
||||||
|
@ -75,7 +75,7 @@ class GithubHook(WebhookBase):
|
|||||||
print("commit not on master")
|
print("commit not on master")
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.repo in ["docs", "discord-bot"]:
|
if self.repo == "docs":
|
||||||
TaskHandler(self.repo_conf).create_task("rebuild")
|
TaskHandler(self.repo_conf).create_task("rebuild")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user