Explorar el Código

feat: add drone-ci

pull/1/head
Rohan Verma hace 6 años
padre
commit
2242566099
Se han modificado 1 ficheros con 21 adiciones y 0 borrados
  1. +21
    -0
      .drone.yml

+ 21
- 0
.drone.yml Ver fichero

@@ -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

Cargando…
Cancelar
Guardar