Initialize Vue docker branch with Drone pipeline

This commit is contained in:
2026-06-19 23:46:25 +08:00
commit e4b754045f
9 changed files with 144 additions and 0 deletions

32
.drone.yml Normal file
View File

@@ -0,0 +1,32 @@
kind: pipeline
type: docker
name: frontend-docker
trigger:
branch:
- docker
event:
- push
steps:
- name: build-image
image: docker:27-cli
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -t cdchen-frontend:docker .
- name: deploy
image: docker:27-cli
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker rm -f cdchen-frontend || true
- docker run -d --name cdchen-frontend --restart unless-stopped -p 8088:80 cdchen-frontend:docker
volumes:
- name: dockersock
host:
path: /var/run/docker.sock