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:
|
upload_build_versioned:
|
||||||
image: woodpeckerci/plugin-s3
|
image: woodpeckerci/plugin-s3
|
||||||
secrets: [minio_access, minio_secret]
|
|
||||||
settings:
|
settings:
|
||||||
bucket: tghandbook
|
bucket: tghandbook
|
||||||
access_key: $MINIO_ACCESS
|
|
||||||
secret_key: $MINIO_SECRET
|
|
||||||
source: dist/**/*
|
source: dist/**/*
|
||||||
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
|
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
|
||||||
strip_prefix: dist/
|
strip_prefix: dist/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
environment:
|
||||||
|
AWS_ACCESS_KEY_ID:
|
||||||
|
from_secret: minio_access
|
||||||
|
AWS_SECRET_ACCESS_KEY:
|
||||||
|
from_secret: minio_secret
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
group: upload
|
group: upload
|
||||||
|
@ -57,14 +59,16 @@ pipeline:
|
||||||
secrets: [minio_access, minio_secret]
|
secrets: [minio_access, minio_secret]
|
||||||
settings:
|
settings:
|
||||||
bucket: tghandbook
|
bucket: tghandbook
|
||||||
secrets: [minio_access, minio_secret]
|
|
||||||
access_key: $MINIO_ACCESS
|
|
||||||
secret_key: $MINIO_SECRET
|
|
||||||
source: dist-pr/**/*
|
source: dist-pr/**/*
|
||||||
target: /pr-${DRONE_PULL_REQUEST}/
|
target: /pr-${DRONE_PULL_REQUEST}/
|
||||||
strip_prefix: dist-pr/
|
strip_prefix: dist-pr/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
environment:
|
||||||
|
AWS_ACCESS_KEY_ID:
|
||||||
|
from_secret: minio_access
|
||||||
|
AWS_SECRET_ACCESS_KEY:
|
||||||
|
from_secret: minio_secret
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
group: upload
|
group: upload
|
||||||
|
@ -74,12 +78,14 @@ pipeline:
|
||||||
secrets: [minio_access, minio_secret]
|
secrets: [minio_access, minio_secret]
|
||||||
settings:
|
settings:
|
||||||
bucket: tghandbook
|
bucket: tghandbook
|
||||||
secrets: [minio_access, minio_secret]
|
|
||||||
access_key: $MINIO_ACCESS
|
|
||||||
secret_key: $MINIO_SECRET
|
|
||||||
source: dist-branch/**/*
|
source: dist-branch/**/*
|
||||||
target: /${DRONE_COMMIT_BRANCH/\//_}/
|
target: /${DRONE_COMMIT_BRANCH/\//_}/
|
||||||
strip_prefix: dist-branch/
|
strip_prefix: dist-branch/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
|
environment:
|
||||||
|
AWS_ACCESS_KEY_ID:
|
||||||
|
from_secret: minio_access
|
||||||
|
AWS_SECRET_ACCESS_KEY:
|
||||||
|
from_secret: minio_secret
|
||||||
group: upload
|
group: upload
|
||||||
|
|
Reference in a new issue