Merge pull request 'build: change host' (#4) from feature-1.2.0 into master
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: https://git.liliyamol.cn:8081/mol/rss-server/pulls/4
This commit is contained in:
10
.drone.yml
10
.drone.yml
@ -23,8 +23,8 @@ steps: # 定义管道的执行步骤
|
||||
from_secret: docker_passwd
|
||||
dockerfile: Dockerfile
|
||||
mirror: https://fpswa5tm.mirror.aliyuncs.com
|
||||
registry: https://git.hiiragi.club:8081
|
||||
repo: git.hiiragi.club:8081/mol/rss-server
|
||||
registry: https://git.liliyamol.cn:8081
|
||||
repo: git.liliyamol.cn:8081/mol/rss-server
|
||||
auto_tag: true
|
||||
|
||||
---
|
||||
@ -53,11 +53,11 @@ steps:
|
||||
secrets: [docker_username, docker_passwd]
|
||||
script:
|
||||
- echo ==-----==开始部署==-----==
|
||||
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWD git.hiiragi.club:8081
|
||||
- docker pull git.hiiragi.club:8081/mol/rss-server:latest
|
||||
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWD git.liliyamol.cn:8081
|
||||
- docker pull git.liliyamol.cn:8081/mol/rss-server:latest
|
||||
- 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
|
||||
# 过滤出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}')
|
||||
- echo ==-----==部署成功==-----==
|
||||
|
@ -72,7 +72,7 @@ def sync(file_list):
|
||||
failed_ids = []
|
||||
|
||||
options = {
|
||||
'webdav_hostname': 'https://pan.hiiragi.club:8081/webdav/',
|
||||
'webdav_hostname': 'https://pan.liliyamol.cn:8081/webdav/',
|
||||
'webdav_login': 'mol',
|
||||
'webdav_password': 'YvG4SkF82qd7ks',
|
||||
'disable_check': True,
|
||||
|
2
start.py
2
start.py
@ -7,7 +7,7 @@ class CreateRssServer():
|
||||
{
|
||||
'id': 'pixiv',
|
||||
'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
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user