yjdjt
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-04-04 14:12:40 +10:00
parent 2b3ce299f5
commit c7dd44f87d
4 changed files with 65 additions and 1 deletions

51
.drone.yml Normal file
View File

@@ -0,0 +1,51 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: python:3.11-slim
commands:
- pip install --no-cache-dir -r requirements.txt
- name: docker-build
image: plugins/docker
settings:
repo: 217.11.166.147:3000/admin/auth_bd
registry: http://217.11.166.147:3000
insecure: true
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
username:
from_secret: docker_username
password:
from_secret: docker_password
context: .
dockerfile: Dockerfile
when:
branch:
- main
event:
- push
- custom
- name: deploy
image: appleboy/drone-ssh
settings:
host: 217.11.166.147
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port: 22
script:
- docker stop auth_bd || true
- docker rm auth_bd || true
- docker pull 217.11.166.147:3000/admin/auth_bd:latest
- docker run -d --name auth_bd -p 8004:8004 217.11.166.147:3000/admin/auth_bd:latest
when:
branch:
- main
event:
- push
- custom