docs: update markdown format

This commit is contained in:
Bo-Yi Wu 2019-08-04 06:58:15 +08:00
parent 44cc1f409f
commit bd8532afdc
2 changed files with 23 additions and 23 deletions

View File

@ -1,8 +1,8 @@
---
date: 2017-01-29T00:00:00+00:00
date: 2019-08-04T00:00:00+00:00
title: SSH
author: appleboy
tags: [ publish, ssh ]
tags: [ deploy, publish, ssh ]
repo: appleboy/drone-ssh
logo: term.svg
image: appleboy/drone-ssh
@ -130,7 +130,7 @@ pipeline:
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
```
# Secret Reference
## Secret Reference
ssh_username
: account for target host user
@ -150,7 +150,7 @@ proxy_ssh_password
proxy_ssh_key
: plain text of user private key for proxy server
# Parameter Reference
## Parameter Reference
host
: target hostname or IP

View File

@ -1,14 +1,14 @@
<img src="images/ssh.png">
# drone-ssh
![sshlog](images/ssh.png)
[![GitHub tag](https://img.shields.io/github/tag/appleboy/drone-ssh.svg)](https://github.com/appleboy/drone-ssh/releases)
[![GoDoc](https://godoc.org/github.com/appleboy/drone-ssh?status.svg)](https://godoc.org/github.com/appleboy/drone-ssh)
[![Build Status](https://cloud.drone.io/api/badges/appleboy/drone-ssh/status.svg)](https://cloud.drone.io/appleboy/drone-ssh)
[![codecov](https://codecov.io/gh/appleboy/drone-ssh/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/drone-ssh)
[![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/drone-ssh)](https://goreportcard.com/report/github.com/appleboy/drone-ssh)
[![Docker Pulls](https://img.shields.io/docker/pulls/appleboy/drone-ssh.svg)](https://hub.docker.com/r/appleboy/drone-ssh/)
[![](https://images.microbadger.com/badges/image/appleboy/drone-ssh.svg)](https://microbadger.com/images/appleboy/drone-ssh "Get your own image badge on microbadger.com")
[![micro badger](https://images.microbadger.com/badges/image/appleboy/drone-ssh.svg)](https://microbadger.com/images/appleboy/drone-ssh "Get your own image badge on microbadger.com")
Drone plugin to execute commands on a remote host through SSH. For the usage
information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/appleboy/drone-ssh/).
@ -49,29 +49,29 @@ The pre-compiled binaries can be downloaded from [release page](https://github.c
With `Go` installed
```
$ go get -u -v github.com/appleboy/drone-ssh
```sh
go get -u -v github.com/appleboy/drone-ssh
```
or build the binary with the following command:
```
$ export GOOS=linux
$ export GOARCH=amd64
$ export CGO_ENABLED=0
$ export GO111MODULE=on
```sh
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
$ go test -cover ./...
go test -cover ./...
$ go build -v -a -tags netgo -o release/linux/amd64/drone-ssh .
go build -v -a -tags netgo -o release/linux/amd64/drone-ssh .
```
## Docker
Build the docker image with the following commands:
```
$ make docker
```sh
make docker
```
## Usage