瀏覽代碼

feat: add drone-ci

pull/1/head
Rohan Verma 6 年之前
父節點
當前提交
2242566099
共有 1 個檔案被更改,包括 21 行新增0 行删除
  1. +21
    -0
      .drone.yml

+ 21
- 0
.drone.yml 查看文件

@@ -0,0 +1,21 @@
---
kind: pipeline
type: docker
name: default
trigger:
branch:
- master
steps:
- name: ssh commands
image: appleboy/drone-ssh
settings:
host: 159.89.175.2
username: deploy
port: 22
key:
from_secret: ssh_key
script:
- cd /home/rhnvrm/apps/rohanverma.net && git fetch origin && git checkout $DRONE_COMMIT
- cd /home/rhnvrm/proxy
- docker-compose build rohanvermanet
- docker-compose up -d rohanvermanet

Loading…
取消
儲存