LAST EDIT
This commit is contained in:
parent
9fa3dc834a
commit
20319285e6
1 changed files with 15 additions and 9 deletions
|
@ -38,16 +38,18 @@ pipeline:
|
|||
|
||||
upload_build_versioned:
|
||||
image: woodpeckerci/plugin-s3
|
||||
secrets: [minio_access, minio_secret]
|
||||
settings:
|
||||
bucket: tghandbook
|
||||
access_key: $MINIO_ACCESS
|
||||
secret_key: $MINIO_SECRET
|
||||
source: dist/**/*
|
||||
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
|
||||
strip_prefix: dist/
|
||||
path_style: true
|
||||
endpoint: https://artifacts.fromouter.space
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: minio_access
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: minio_secret
|
||||
when:
|
||||
event: push
|
||||
group: upload
|
||||
|
@ -57,14 +59,16 @@ pipeline:
|
|||
secrets: [minio_access, minio_secret]
|
||||
settings:
|
||||
bucket: tghandbook
|
||||
secrets: [minio_access, minio_secret]
|
||||
access_key: $MINIO_ACCESS
|
||||
secret_key: $MINIO_SECRET
|
||||
source: dist-pr/**/*
|
||||
target: /pr-${DRONE_PULL_REQUEST}/
|
||||
strip_prefix: dist-pr/
|
||||
path_style: true
|
||||
endpoint: https://artifacts.fromouter.space
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: minio_access
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: minio_secret
|
||||
when:
|
||||
event: pull_request
|
||||
group: upload
|
||||
|
@ -74,12 +78,14 @@ pipeline:
|
|||
secrets: [minio_access, minio_secret]
|
||||
settings:
|
||||
bucket: tghandbook
|
||||
secrets: [minio_access, minio_secret]
|
||||
access_key: $MINIO_ACCESS
|
||||
secret_key: $MINIO_SECRET
|
||||
source: dist-branch/**/*
|
||||
target: /${DRONE_COMMIT_BRANCH/\//_}/
|
||||
strip_prefix: dist-branch/
|
||||
path_style: true
|
||||
endpoint: https://artifacts.fromouter.space
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: minio_access
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: minio_secret
|
||||
group: upload
|
||||
|
|
Reference in a new issue