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
|
||||
image: ghcr.io/appleboy/drone-ssh
|
||||
environment:
|
||||
commit: ${DRONE_BUILD_NUMBER}
|
||||
# MUST BE in UPPERCASE
|
||||
COMMIT:
|
||||
from_secret: commit
|
||||
settings:
|
||||
host: foo.com
|
||||
username: root
|
||||
password: 1234
|
||||
port: 22
|
||||
+ envs:
|
||||
- aws_access_key_id
|
||||
# can be in lowercase (uppercased in code)
|
||||
- commit
|
||||
script:
|
||||
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
|
||||
- echo $commit
|
||||
- echo $COMMIT
|
||||
```
|
||||
|
||||
Example configuration for stoping script after first failure:
|
||||
|
Loading…
Reference in New Issue
Block a user