build: change host

This commit is contained in:
mol
2023-08-31 15:45:01 +08:00
parent 89e4b69cf6
commit 6311d3f95e
3 changed files with 7 additions and 7 deletions

View File

@ -23,8 +23,8 @@ steps: # 定义管道的执行步骤
from_secret: docker_passwd from_secret: docker_passwd
dockerfile: Dockerfile dockerfile: Dockerfile
mirror: https://fpswa5tm.mirror.aliyuncs.com mirror: https://fpswa5tm.mirror.aliyuncs.com
registry: https://git.hiiragi.club:8081 registry: https://git.liliyamol.cn:8081
repo: git.hiiragi.club:8081/mol/rss-server repo: git.liliyamol.cn:8081/mol/rss-server
auto_tag: true auto_tag: true
--- ---
@ -53,11 +53,11 @@ steps:
secrets: [docker_username, docker_passwd] secrets: [docker_username, docker_passwd]
script: script:
- echo ==-----==开始部署==-----== - echo ==-----==开始部署==-----==
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWD git.hiiragi.club:8081 - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWD git.liliyamol.cn:8081
- docker pull git.hiiragi.club:8081/mol/rss-server:latest - docker pull git.liliyamol.cn:8081/mol/rss-server:latest
- list=$(docker ps -a | grep rss_server* | awk '{print $1}') - list=$(docker ps -a | grep rss_server* | awk '{print $1}')
- test "$list" = "" && echo "none rss_server containers running" || docker stop $list && docker container rm $list - test "$list" = "" && echo "none rss_server containers running" || docker stop $list && docker container rm $list
# 过滤出dockerImages的id, 删除none镜像 # 过滤出dockerImages的id, 删除none镜像
- docker run -d --name=rss_server git.hiiragi.club:8081/mol/rss-server:latest - docker run -d --name=rss_server git.liliyamol.cn:8081/mol/rss-server:latest
- docker rmi $(docker images | grep "none" | awk '{print $3}') - docker rmi $(docker images | grep "none" | awk '{print $3}')
- echo ==-----==部署成功==-----== - echo ==-----==部署成功==-----==

View File

@ -72,7 +72,7 @@ def sync(file_list):
failed_ids = [] failed_ids = []
options = { options = {
'webdav_hostname': 'https://pan.hiiragi.club:8081/webdav/', 'webdav_hostname': 'https://pan.liliyamol.cn:8081/webdav/',
'webdav_login': 'mol', 'webdav_login': 'mol',
'webdav_password': 'YvG4SkF82qd7ks', 'webdav_password': 'YvG4SkF82qd7ks',
'disable_check': True, 'disable_check': True,

View File

@ -7,7 +7,7 @@ class CreateRssServer():
{ {
'id': 'pixiv', 'id': 'pixiv',
'type': 0, 'type': 0,
'url': 'https://rss.hiiragi.club:8081/public.php?op=rss&id=-2&is_cat=0&q=&key=pp9ejw64463b6621a0b', 'url': 'https://rss.liliyamol.cn:8081/public.php?op=rss&id=-2&is_cat=0&q=&key=pp9ejw64463b6621a0b',
'result_handler': pixiv_result_handler 'result_handler': pixiv_result_handler
} }
] ]