cicd
parent
a6b12fc451
commit
181522a0c1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue