Files
martial-admin-mini/.drone.yml
Developer 92aa0cdf11
Some checks failed
continuous-integration/drone/push Build encountered an error
Add CI/CD config
2025-12-12 19:00:43 +08:00

38 lines
746 B
YAML

kind: pipeline
type: docker
name: martial-admin-mini
trigger:
branch:
- main
- master
steps:
- name: build
image: plugins/docker
settings:
repo: martial/admin-mini
tags: latest
dockerfile: Dockerfile
daemon_off: true
volumes:
- name: docker
path: /var/run/docker.sock
- name: deploy
image: appleboy/drone-ssh
settings:
host: 154.30.6.21
username: root
key:
from_secret: ssh_key
script:
- docker stop martial-admin-mini || true
- docker rm martial-admin-mini || true
- docker run -d --name martial-admin-mini -p 8082:80 martial/admin-mini:latest
volumes:
- name: docker
host:
path: /var/run/docker.sock