prod-jmbd
Denny Lastpaste 2024-02-01 21:04:25 +07:00
parent a6b12fc451
commit 181522a0c1
1 changed files with 29 additions and 0 deletions

29
.drone.yaml Normal file
View File

@ -0,0 +1,29 @@
---
kind: pipeline
type: ssh
name: default
server:
host:
from_secret: JMBD_HOST
user:
from_secret: JMBD_USER
ssh_key:
from_secret: JMBD_KEY
steps:
- name: greeting
commands:
- echo hello world
- name: retrieve
environment:
DIR:
from_secret: JMBD_DIRECTORY
BRANCH:
from_secret: JMBD_BRANCH
commands:
- cd $DIR
- git fetch
- git checkout $BRANCH
- git pull