fix: example with secrets (#178)

This commit is contained in:
Alexey Smirnov 2023-04-13 04:39:43 +03:00 committed by GitHub
parent 49542638c6
commit fdc4c8de43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: