build: change host
This commit is contained in:
10
.drone.yml
10
.drone.yml
@ -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 ==-----==部署成功==-----==
|
||||||
|
@ -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,
|
||||||
|
2
start.py
2
start.py
@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user