switch to ssh from scp drone
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9c1032d1a1
commit
ff4a1b238c
43
.drone.yml
43
.drone.yml
|
@ -1,31 +1,46 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: make-then-deploy
|
||||
name: test-then-make
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
- name: build test
|
||||
image: nicksantamaria/mkdocs
|
||||
commands:
|
||||
- mkdocs build
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: scp files
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: tilde.team
|
||||
username: terris
|
||||
key:
|
||||
from_secrets: ssh_key
|
||||
port: 22
|
||||
command_timeout: 2m
|
||||
target: /home/terris/public_html/substation
|
||||
source: substation/*
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
name: ssh-build-deploy
|
||||
|
||||
server:
|
||||
host:
|
||||
from_secret: substationhost
|
||||
user:
|
||||
from_secret: scp_username
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
|
||||
clone:
|
||||
disable: false
|
||||
|
||||
steps:
|
||||
- name: mkdocs build
|
||||
commands:
|
||||
- mkdocs build
|
||||
depends_on:
|
||||
- test-then-make
|
||||
- name: deploy substation
|
||||
commands:
|
||||
- scp -R substation/ /home/terris/public_html/substation
|
||||
depends_on:
|
||||
- mkdocs build
|
||||
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
|
|
Loading…
Reference in New Issue