From 5f171f4c5e57cdbba73a1e86258c96ce5a4ccd44 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 8 Feb 2023 06:05:57 +0800 Subject: [PATCH] use drone secrets for s3 info (#69) Reviewed-on: https://gitea.com/gitea/changelog/pulls/69 --- .drone.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5db5151..21cfd9e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -79,9 +79,16 @@ steps: pull: always image: woodpeckerci/plugin-s3:latest settings: - acl: public-read - bucket: gitea-artifacts - endpoint: https://ams3.digitaloceanspaces.com + acl: + from_secret: aws_s3_acl + region: + from_secret: aws_s3_region + bucket: + from_secret: aws_s3_bucket + endpoint: + from_secret: aws_s3_endpoint + path_style: + from_secret: aws_s3_path_style source: "dist/release/*" strip_prefix: dist/release/ target: /changelog-tool/main @@ -98,9 +105,16 @@ steps: pull: always image: woodpeckerci/plugin-s3:latest settings: - acl: public-read - bucket: gitea-artifacts - endpoint: https://ams3.digitaloceanspaces.com + acl: + from_secret: aws_s3_acl + region: + from_secret: aws_s3_region + bucket: + from_secret: aws_s3_bucket + endpoint: + from_secret: aws_s3_endpoint + path_style: + from_secret: aws_s3_path_style source: "dist/release/*" strip_prefix: dist/release/ target: "/changelog-tool/${DRONE_TAG##v}"