diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-02-05 16:42:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 16:42:48 -0500 |
commit | ff18d1744273d093d854f548662a0c204f220c16 (patch) | |
tree | 021fd2641b19ffc60714cfb73050ad4a1b5dc50e /.drone.yml | |
parent | c07199f9ab4ac5a1ecbfd27616ad44bf35d00fc1 (diff) | |
download | gitea-ff18d1744273d093d854f548662a0c204f220c16.tar.gz gitea-ff18d1744273d093d854f548662a0c204f220c16.zip |
use drone secrets for s3 config (#22770)
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/.drone.yml b/.drone.yml index f9da8f9743..dc8423875a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -763,10 +763,16 @@ 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 + 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: "/gitea/${DRONE_BRANCH##release/v}" @@ -784,10 +790,16 @@ 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 + 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: /gitea/main @@ -886,10 +898,16 @@ 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 + 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: "/gitea/${DRONE_TAG##v}" |