mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 23:33:15 -05:00
use drone secrets for s3 config (#22770)
This commit is contained in:
parent
c07199f9ab
commit
ff18d17442
1 changed files with 30 additions and 12 deletions
42
.drone.yml
42
.drone.yml
|
@ -763,10 +763,16 @@ steps:
|
||||||
image: woodpeckerci/plugin-s3:latest
|
image: woodpeckerci/plugin-s3:latest
|
||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
acl: public-read
|
acl:
|
||||||
bucket: gitea-artifacts
|
from_secret: aws_s3_acl
|
||||||
endpoint: https://ams3.digitaloceanspaces.com
|
region:
|
||||||
path_style: true
|
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/*"
|
source: "dist/release/*"
|
||||||
strip_prefix: dist/release/
|
strip_prefix: dist/release/
|
||||||
target: "/gitea/${DRONE_BRANCH##release/v}"
|
target: "/gitea/${DRONE_BRANCH##release/v}"
|
||||||
|
@ -784,10 +790,16 @@ steps:
|
||||||
- name: release-main
|
- name: release-main
|
||||||
image: woodpeckerci/plugin-s3:latest
|
image: woodpeckerci/plugin-s3:latest
|
||||||
settings:
|
settings:
|
||||||
acl: public-read
|
acl:
|
||||||
bucket: gitea-artifacts
|
from_secret: aws_s3_acl
|
||||||
endpoint: https://ams3.digitaloceanspaces.com
|
region:
|
||||||
path_style: true
|
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/*"
|
source: "dist/release/*"
|
||||||
strip_prefix: dist/release/
|
strip_prefix: dist/release/
|
||||||
target: /gitea/main
|
target: /gitea/main
|
||||||
|
@ -886,10 +898,16 @@ steps:
|
||||||
image: woodpeckerci/plugin-s3:latest
|
image: woodpeckerci/plugin-s3:latest
|
||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
acl: public-read
|
acl:
|
||||||
bucket: gitea-artifacts
|
from_secret: aws_s3_acl
|
||||||
endpoint: https://ams3.digitaloceanspaces.com
|
region:
|
||||||
path_style: true
|
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/*"
|
source: "dist/release/*"
|
||||||
strip_prefix: dist/release/
|
strip_prefix: dist/release/
|
||||||
target: "/gitea/${DRONE_TAG##v}"
|
target: "/gitea/${DRONE_TAG##v}"
|
||||||
|
|
Loading…
Reference in a new issue