This commit is contained in:
parent
ba9bb0bce5
commit
9fa3dc834a
1 changed files with 29 additions and 24 deletions
|
@ -38,43 +38,48 @@ pipeline:
|
||||||
|
|
||||||
upload_build_versioned:
|
upload_build_versioned:
|
||||||
image: woodpeckerci/plugin-s3
|
image: woodpeckerci/plugin-s3
|
||||||
bucket: tghandbook
|
|
||||||
secrets: [minio_access, minio_secret]
|
secrets: [minio_access, minio_secret]
|
||||||
access_key: $MINIO_ACCESS
|
settings:
|
||||||
secret_key: $MINIO_SECRET
|
bucket: tghandbook
|
||||||
source: dist/**/*
|
access_key: $MINIO_ACCESS
|
||||||
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
|
secret_key: $MINIO_SECRET
|
||||||
strip_prefix: dist/
|
source: dist/**/*
|
||||||
path_style: true
|
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
|
||||||
endpoint: https://artifacts.fromouter.space
|
strip_prefix: dist/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
group: upload
|
group: upload
|
||||||
|
|
||||||
upload_build_pr:
|
upload_build_pr:
|
||||||
image: woodpeckerci/plugin-s3
|
image: woodpeckerci/plugin-s3
|
||||||
bucket: tghandbook
|
|
||||||
secrets: [minio_access, minio_secret]
|
secrets: [minio_access, minio_secret]
|
||||||
access_key: $MINIO_ACCESS
|
settings:
|
||||||
secret_key: $MINIO_SECRET
|
bucket: tghandbook
|
||||||
source: dist-pr/**/*
|
secrets: [minio_access, minio_secret]
|
||||||
target: /pr-${DRONE_PULL_REQUEST}/
|
access_key: $MINIO_ACCESS
|
||||||
strip_prefix: dist-pr/
|
secret_key: $MINIO_SECRET
|
||||||
path_style: true
|
source: dist-pr/**/*
|
||||||
endpoint: https://artifacts.fromouter.space
|
target: /pr-${DRONE_PULL_REQUEST}/
|
||||||
|
strip_prefix: dist-pr/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
group: upload
|
group: upload
|
||||||
|
|
||||||
upload_build_branch:
|
upload_build_branch:
|
||||||
image: woodpeckerci/plugin-s3
|
image: woodpeckerci/plugin-s3
|
||||||
bucket: tghandbook
|
|
||||||
secrets: [minio_access, minio_secret]
|
secrets: [minio_access, minio_secret]
|
||||||
access_key: $MINIO_ACCESS
|
settings:
|
||||||
secret_key: $MINIO_SECRET
|
bucket: tghandbook
|
||||||
source: dist-branch/**/*
|
secrets: [minio_access, minio_secret]
|
||||||
target: /${DRONE_COMMIT_BRANCH/\//_}/
|
access_key: $MINIO_ACCESS
|
||||||
strip_prefix: dist-branch/
|
secret_key: $MINIO_SECRET
|
||||||
path_style: true
|
source: dist-branch/**/*
|
||||||
endpoint: https://artifacts.fromouter.space
|
target: /${DRONE_COMMIT_BRANCH/\//_}/
|
||||||
|
strip_prefix: dist-branch/
|
||||||
|
path_style: true
|
||||||
|
endpoint: https://artifacts.fromouter.space
|
||||||
group: upload
|
group: upload
|
||||||
|
|
Reference in a new issue