Closed atomdmac closed 2 years ago
I do not have access to the issue comment, what is the fix for this? I'm facing the same issue.
copy-pasted:
you could try if that does make a difference:
upload_files:
image: woodpeckerci/plugin-s3
settings:
- secrets:
- - S3_ACCESS_KEY_ID
- - S3_SECRET_ACCESS_KEY
bucket: lnkbnk-e2e
endpoint: s3.us-west-000.backblazeb2.com
region: us-west-000
- access_key: $S3_ACCESS_KEY_ID
- secret_key: $S3_SECRET_ACCESS_KEY
+ access_key:
+ from_secret: S3_ACCESS_KEY_ID
+ secret_key:
+ from_secret: S3_SECRET_ACCESS_KEY
source: /my/files.sample.txt
target: /
when:
event: [pull_request]
status: [failure]
or:
upload_files:
image: woodpeckerci/plugin-s3
+ secrets:
+ - S3_ACCESS_KEY_ID
+ - S3_SECRET_ACCESS_KEY
settings:
- secrets:
- - S3_ACCESS_KEY_ID
- - S3_SECRET_ACCESS_KEY
bucket: lnkbnk-e2e
endpoint: s3.us-west-000.backblazeb2.com
region: us-west-000
access_key: $S3_ACCESS_KEY_ID
secret_key: $S3_SECRET_ACCESS_KEY
source: /my/files.sample.txt
target: /
when:
event: [pull_request]
status: [failure]
answer from @atomdmac :+1:
@6543 Thank you for the suggestions! The first one worked. I had actually tried the `from_secret` syntax previously but I believe I was prepending my secret names with `$` erroneously. Thanks again!
It worked! Great! :+1: (using the first suggestions).
I think you should update the doc, https://woodpecker-ci.org/plugins/plugin-s3, as the secrets
example does not work.
pulls are welcome :)
https://github.com/woodpecker-ci/plugin-s3/blob/master/docs.md
I'm attempting to use this plugin to upload files to a B2 Backblaze bucket. If I insert my credentials directly into the
.woodpecker.yml
(which is obviously not a great idea), the upload works as expected.If I attempt to replace the static values with secrets (see below), I get the error below.
Steps I've already taken:
echo "$SECRET_NAME"
step in thecommands
section.Error
woodpecker.yml
I realize that this may very well be an issue with my particular server config, etc. but I wanted to check to see if anyone else has run into this issue before.