mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
fix: example with secrets (#178)
This commit is contained in:
parent
49542638c6
commit
fdc4c8de43
9
DOCS.md
9
DOCS.md
@ -130,18 +130,19 @@ Example configuration for exporting custom secrets:
|
|||||||
- name: ssh commands
|
- name: ssh commands
|
||||||
image: ghcr.io/appleboy/drone-ssh
|
image: ghcr.io/appleboy/drone-ssh
|
||||||
environment:
|
environment:
|
||||||
commit: ${DRONE_BUILD_NUMBER}
|
# MUST BE in UPPERCASE
|
||||||
|
COMMIT:
|
||||||
|
from_secret: commit
|
||||||
settings:
|
settings:
|
||||||
host: foo.com
|
host: foo.com
|
||||||
username: root
|
username: root
|
||||||
password: 1234
|
password: 1234
|
||||||
port: 22
|
port: 22
|
||||||
+ envs:
|
+ envs:
|
||||||
- aws_access_key_id
|
# can be in lowercase (uppercased in code)
|
||||||
- commit
|
- commit
|
||||||
script:
|
script:
|
||||||
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
|
- echo $COMMIT
|
||||||
- echo $commit
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Example configuration for stoping script after first failure:
|
Example configuration for stoping script after first failure:
|
||||||
|
Loading…
Reference in New Issue
Block a user