Skip to content

Commit

Permalink
feat: structure organization
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jan 12, 2024
1 parent f13ac94 commit de4e86d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/emby_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/xiaoya-glue
tags: |
type=raw,value=emby-library
-
name: Set Up QEMU
Expand All @@ -48,6 +50,5 @@ jobs:
linux/amd64
linux/arm64/v8
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/xiaoya-glue:emby-library
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 3 additions & 2 deletions .github/workflows/glue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/xiaoya-glue
tags: |
type=raw,value=latest
-
name: Set Up QEMU
Expand All @@ -48,6 +50,5 @@ jobs:
linux/amd64
linux/arm64/v8
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/xiaoya-glue:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
24 changes: 21 additions & 3 deletions emby_library/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/bin/bash
#
# ——————————————————————————————————————————————————————————————————————————————————
# __ ___ _ _ _
# \ \ / (_) /\ | (_) | |
# \ V / _ __ _ ___ _ _ __ _ / \ | |_ ___| |_
# > < | |/ _` |/ _ \| | | |/ _` | / /\ \ | | / __| __|
# / . \| | (_| | (_) | |_| | (_| | / ____ \| | \__ \ |_
# /_/ \_\_|\__,_|\___/ \__, |\__,_| /_/ \_\_|_|___/\__|
# __/ |
# |___/
#
# Copyright (c) 2023 DDSRem <https://blog.ddsrem.com>
#
# This is free software, licensed under the Mit License.
#
# ——————————————————————————————————————————————————————————————————————————————————
#
# https://github.com/duckeaty/update_xiaoya_emby_config_library

Green="\033[32m"
Red="\033[31m"
Expand All @@ -17,11 +35,11 @@ function WARN() {
echo -e "${WARN} ${1}"
}

bash /app/update.sh update_config
bash /app/update.sh update_policy
bash /app/module.sh update_config
bash /app/module.sh update_policy

crontab -r
echo -e "${CRON} bash /app/update.sh update_config && bash /app/update.sh update_policy" >> /tmp/crontab.list
echo -e "${CRON} bash /app/module.sh update_config && bash /app/module.sh update_policy" >> /tmp/crontab.list
INFO "设置定时任务中..."
crontab /tmp/crontab.list
INFO "定时任务预览:"
Expand Down
18 changes: 18 additions & 0 deletions emby_library/update.sh → emby_library/module.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/bin/bash
#
# ——————————————————————————————————————————————————————————————————————————————————
# __ ___ _ _ _
# \ \ / (_) /\ | (_) | |
# \ V / _ __ _ ___ _ _ __ _ / \ | |_ ___| |_
# > < | |/ _` |/ _ \| | | |/ _` | / /\ \ | | / __| __|
# / . \| | (_| | (_) | |_| | (_| | / ____ \| | \__ \ |_
# /_/ \_\_|\__,_|\___/ \__, |\__,_| /_/ \_\_|_|___/\__|
# __/ |
# |___/
#
# Copyright (c) 2023 DDSRem <https://blog.ddsrem.com>
#
# This is free software, licensed under the Mit License.
#
# ——————————————————————————————————————————————————————————————————————————————————
#
# https://github.com/duckeaty/update_xiaoya_emby_config_library

Green="\033[32m"
Red="\033[31m"
Expand Down

0 comments on commit de4e86d

Please sign in to comment.