From 7a5ea06674134592bff0d3b99b9abe37b38f7818 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sun, 5 Feb 2023 14:08:37 -0500 Subject: [PATCH 1/2] use drone secrets for s3 config to allow for updating --- .drone.yml | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index f9da8f9743807..cdc13c3dcc3c5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -763,10 +763,14 @@ steps: image: woodpeckerci/plugin-s3:latest pull: always settings: - acl: public-read - bucket: gitea-artifacts - endpoint: https://ams3.digitaloceanspaces.com - path_style: true + acl: + from_secret: aws_s3_acl + 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: "/gitea/${DRONE_BRANCH##release/v}" @@ -784,10 +788,14 @@ steps: - name: release-main image: woodpeckerci/plugin-s3:latest settings: - acl: public-read - bucket: gitea-artifacts - endpoint: https://ams3.digitaloceanspaces.com - path_style: true + acl: + from_secret: aws_s3_acl + 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: /gitea/main @@ -886,10 +894,14 @@ steps: image: woodpeckerci/plugin-s3:latest pull: always settings: - acl: public-read - bucket: gitea-artifacts - endpoint: https://ams3.digitaloceanspaces.com - path_style: true + acl: + from_secret: aws_s3_acl + 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: "/gitea/${DRONE_TAG##v}" From 20631e589b41c5d5425e13e9404012dec3b01ca8 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sun, 5 Feb 2023 14:17:34 -0500 Subject: [PATCH 2/2] add region --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index cdc13c3dcc3c5..dc8423875a6ff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -765,6 +765,8 @@ steps: settings: acl: from_secret: aws_s3_acl + region: + from_secret: aws_s3_region bucket: from_secret: aws_s3_bucket endpoint: @@ -790,6 +792,8 @@ steps: settings: acl: from_secret: aws_s3_acl + region: + from_secret: aws_s3_region bucket: from_secret: aws_s3_bucket endpoint: @@ -896,6 +900,8 @@ steps: settings: acl: from_secret: aws_s3_acl + region: + from_secret: aws_s3_region bucket: from_secret: aws_s3_bucket endpoint: