Files
gptchat/.drone.yml
admin e413a3ac53
Some checks failed
continuous-integration/drone/push Build encountered an error
+
2026-04-04 11:49:29 +10:00

40 lines
812 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker:20.10
privileged: true
commands:
- docker info
- docker build -t gitea.allowlgroup.ru/allowlgroup/gptchat:latest .
- docker save gitea.allowlgroup.ru/allowlgroup/gptchat:latest -o gptchat.tar
- name: deploy
image: appleboy/drone-ssh
settings:
host: gitea.allowlgroup.ru
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port: 22
commands:
- scp gptchat.tar /tmp/gptchat.tar
- docker load -i /tmp/gptchat.tar &&
docker stop gptchat || true &&
docker rm gptchat || true &&
docker run -d --name gptchat -p 8484:8484 gitea.allowlgroup.ru/allowlgroup/gptchat:latest
services:
- name: docker
image: docker:dind
privileged: true