Skip to content

Commit 965376d

Browse files
authored
use drone secrets for s3 config (#22770) (#22773)
1 parent 2e12161 commit 965376d

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

.drone.yml

+30-12
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,16 @@ steps:
769769
image: woodpeckerci/plugin-s3:latest
770770
pull: always
771771
settings:
772-
acl: public-read
773-
bucket: gitea-artifacts
774-
endpoint: https://ams3.digitaloceanspaces.com
775-
path_style: true
772+
acl:
773+
from_secret: aws_s3_acl
774+
region:
775+
from_secret: aws_s3_region
776+
bucket:
777+
from_secret: aws_s3_bucket
778+
endpoint:
779+
from_secret: aws_s3_endpoint
780+
path_style:
781+
from_secret: aws_s3_path_style
776782
source: "dist/release/*"
777783
strip_prefix: dist/release/
778784
target: "/gitea/${DRONE_BRANCH##release/v}"
@@ -790,10 +796,16 @@ steps:
790796
- name: release-main
791797
image: woodpeckerci/plugin-s3:latest
792798
settings:
793-
acl: public-read
794-
bucket: gitea-artifacts
795-
endpoint: https://ams3.digitaloceanspaces.com
796-
path_style: true
799+
acl:
800+
from_secret: aws_s3_acl
801+
region:
802+
from_secret: aws_s3_region
803+
bucket:
804+
from_secret: aws_s3_bucket
805+
endpoint:
806+
from_secret: aws_s3_endpoint
807+
path_style:
808+
from_secret: aws_s3_path_style
797809
source: "dist/release/*"
798810
strip_prefix: dist/release/
799811
target: /gitea/main
@@ -892,10 +904,16 @@ steps:
892904
image: woodpeckerci/plugin-s3:latest
893905
pull: always
894906
settings:
895-
acl: public-read
896-
bucket: gitea-artifacts
897-
endpoint: https://ams3.digitaloceanspaces.com
898-
path_style: true
907+
acl:
908+
from_secret: aws_s3_acl
909+
region:
910+
from_secret: aws_s3_region
911+
bucket:
912+
from_secret: aws_s3_bucket
913+
endpoint:
914+
from_secret: aws_s3_endpoint
915+
path_style:
916+
from_secret: aws_s3_path_style
899917
source: "dist/release/*"
900918
strip_prefix: dist/release/
901919
target: "/gitea/${DRONE_TAG##v}"

0 commit comments

Comments
 (0)