|
|
|
@ -38,7 +38,6 @@ steps: |
|
|
|
registry: https://ccr.ccs.tencentyun.com # 测试腾讯云上的仓库 |
|
|
|
repo: ccr.ccs.tencentyun.com/guandao/test # docker仓库地址 |
|
|
|
username: 100011296659 |
|
|
|
mirror: https://mirror.ccs.tencentyun.com |
|
|
|
password: |
|
|
|
from_secret: repo_pw |
|
|
|
tags: |
|
|
|
@ -53,7 +52,7 @@ steps: |
|
|
|
image: appleboy/drone-scp |
|
|
|
pull: if-not-exists |
|
|
|
settings: |
|
|
|
host: 159.75.130.72 |
|
|
|
host: 192.168.31.146 |
|
|
|
username: root |
|
|
|
key: |
|
|
|
from_secret: ssh_key |
|
|
|
@ -72,7 +71,7 @@ steps: |
|
|
|
depends_on: |
|
|
|
- publish |
|
|
|
settings: |
|
|
|
host: 159.75.130.72 # 远程连接地址 |
|
|
|
host: 192.168.31.146 # 远程连接地址 |
|
|
|
username: root # 远程连接账号 |
|
|
|
ssh_key: |
|
|
|
from_secret: ssh_key |
|
|
|
@ -148,7 +147,7 @@ steps: |
|
|
|
# https://docs.gitea.io/en-us/api-usage/#generating-and-listing-api-tokens |
|
|
|
api_key: |
|
|
|
from_secret: release_api_key |
|
|
|
base_url: https://git.cobb.wang |
|
|
|
base_url: http://192.168.31.146:3000 |
|
|
|
files: archive/* |
|
|
|
when: |
|
|
|
event: |
|
|
|
@ -175,7 +174,7 @@ steps: |
|
|
|
image: appleboy/drone-scp |
|
|
|
pull: if-not-exists |
|
|
|
settings: |
|
|
|
host: 159.75.130.72 |
|
|
|
host: 192.168.31.146 |
|
|
|
username: root |
|
|
|
key: |
|
|
|
from_secret: ssh_key |
|
|
|
@ -191,7 +190,7 @@ steps: |
|
|
|
depends_on: |
|
|
|
- rollback-scp |
|
|
|
settings: |
|
|
|
host: 159.75.130.72 # 远程连接地址 |
|
|
|
host: 192.168.31.146 # 远程连接地址 |
|
|
|
username: root # 远程连接账号 |
|
|
|
ssh_key: |
|
|
|
from_secret: ssh_key |
|
|
|
|