+
This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -18,9 +18,9 @@ steps:
|
||||
- name: docker-build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: 217.11.166.147:3000/admin/gptchat
|
||||
registry: http://217.11.166.147:3000
|
||||
insecure: true
|
||||
repo: gitea.allowlgroup.ru/allowlgroup/gptchat
|
||||
registry: https://gitea.allowlgroup.ru
|
||||
insecure: false
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
@@ -40,22 +40,17 @@ steps:
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: 217.11.166.147
|
||||
host: gitea.allowlgroup.ru
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
password:
|
||||
from_secret: ssh_password
|
||||
key:
|
||||
from_secret: ssh_private_key
|
||||
port: 22
|
||||
script:
|
||||
- export DOCKER_HOST="unix:///var/run/docker.sock"
|
||||
- docker stop gptchat || true
|
||||
- docker rm gptchat || true
|
||||
- docker pull 217.11.166.147:3000/admin/gptchat:latest
|
||||
- docker run -d --name gptchat -p 8084:8084 217.11.166.147:3000/admin/gptchat:latest
|
||||
- ...
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- custom
|
||||
|
||||
|
||||
Reference in New Issue
Block a user