🚀 添加master部署

This commit is contained in:
sunxiaolong
2024-06-30 15:30:42 +08:00
parent 27bf3ea7a0
commit f50def64cf

View File

@@ -3,6 +3,45 @@ kind: pipeline
type: ssh
name: master-machine
server:
host: 121.37.253.228
user: www
password:
from_secret: www_password
steps:
- name: build new image
commands:
- docker compose build --no-cache
- name: clean old continaer
commands:
- docker container inspect kami_boss &> /dev/null && docker container rm -f kami_boss
- name: start new container
commands:
- echo start build
- docker compose up -d kami_boss
- name: clean old image and container
commands:
- docker images --filter "dangling=true" -q | xargs -r docker rmi -f
- docker images --filter "dangling=none" -q | xargs -r docker rmi -f
trigger:
branch:
- develop
when:
event:
- push
- pull_request
- tag
- promote
- rollback
---
kind: pipeline
type: ssh
name: master-machine
server:
host: 121.37.253.228
user: www