use secrets for s3 info (#530)

This commit is contained in:
techknowlogick 2023-02-08 05:53:05 +08:00 committed by 6543
parent f28f199e85
commit fff1af1029
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
1 changed files with 27 additions and 10 deletions

View File

@ -110,11 +110,16 @@ steps:
pull: always pull: always
image: woodpeckerci/plugin-s3:latest image: woodpeckerci/plugin-s3:latest
settings: settings:
acl: public-read acl:
bucket: gitea-artifacts from_secret: aws_s3_acl
region:
from_secret: aws_s3_region
bucket:
from_secret: aws_s3_bucket
endpoint: endpoint:
from_secret: aws_endpoint from_secret: aws_s3_endpoint
path_style: true path_style:
from_secret: aws_s3_path_style
source: "dist/release/*" source: "dist/release/*"
strip_prefix: dist/release/ strip_prefix: dist/release/
target: "/tea/${DRONE_TAG##v}" target: "/tea/${DRONE_TAG##v}"
@ -131,10 +136,16 @@ steps:
pull: always pull: always
image: woodpeckerci/plugin-s3:latest image: woodpeckerci/plugin-s3:latest
settings: settings:
acl: public-read acl:
bucket: gitea-artifacts from_secret: aws_s3_acl
region:
from_secret: aws_s3_region
bucket:
from_secret: aws_s3_bucket
endpoint: endpoint:
from_secret: aws_endpoint from_secret: aws_s3_endpoint
path_style:
from_secret: aws_s3_path_style
source: "dist/release/*" source: "dist/release/*"
strip_prefix: dist/release/ strip_prefix: dist/release/
target: "/tea/${DRONE_BRANCH##release/v}" target: "/tea/${DRONE_BRANCH##release/v}"
@ -153,10 +164,16 @@ steps:
pull: always pull: always
image: woodpeckerci/plugin-s3:latest image: woodpeckerci/plugin-s3:latest
settings: settings:
acl: public-read acl:
bucket: gitea-artifacts from_secret: aws_s3_acl
region:
from_secret: aws_s3_region
bucket:
from_secret: aws_s3_bucket
endpoint: endpoint:
from_secret: aws_endpoint from_secret: aws_s3_endpoint
path_style:
from_secret: aws_s3_path_style
source: "dist/release/*" source: "dist/release/*"
strip_prefix: dist/release/ strip_prefix: dist/release/
target: /tea/main target: /tea/main