forked from hamcha/tghandbook
Strip them prefixes
This commit is contained in:
parent
4e0d101239
commit
7758bfc343
1 changed files with 8 additions and 5 deletions
13
.drone.yml
13
.drone.yml
|
@ -33,7 +33,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- yarn build
|
- yarn build
|
||||||
environment:
|
environment:
|
||||||
SUBPATH: /tghandbook/${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/dist
|
SUBPATH: /tghandbook/${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
@ -45,7 +45,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- yarn build
|
- yarn build
|
||||||
environment:
|
environment:
|
||||||
SUBPATH: /tghandbook/pr-${DRONE_PULL_REQUEST}/dist
|
SUBPATH: /tghandbook/pr-${DRONE_PULL_REQUEST}
|
||||||
OUTDIR: ./dist-pr
|
OUTDIR: ./dist-pr
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -58,7 +58,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- yarn build
|
- yarn build
|
||||||
environment:
|
environment:
|
||||||
SUBPATH: /tghandbook/latest/dist
|
SUBPATH: /tghandbook/latest
|
||||||
OUTDIR: ./dist-master
|
OUTDIR: ./dist-master
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -77,7 +77,8 @@ steps:
|
||||||
secret_key:
|
secret_key:
|
||||||
from_secret: minio_secret
|
from_secret: minio_secret
|
||||||
source: dist/**/*
|
source: dist/**/*
|
||||||
target: /${DRONE_COMMIT_SHA:0:8}/
|
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
|
||||||
|
strip_prefix: dist/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
when:
|
when:
|
||||||
|
@ -96,6 +97,7 @@ steps:
|
||||||
from_secret: minio_secret
|
from_secret: minio_secret
|
||||||
source: dist-pr/**/*
|
source: dist-pr/**/*
|
||||||
target: /pr-${DRONE_PULL_REQUEST}/
|
target: /pr-${DRONE_PULL_REQUEST}/
|
||||||
|
strip_prefix: dist-pr/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
when:
|
when:
|
||||||
|
@ -114,6 +116,7 @@ steps:
|
||||||
from_secret: minio_secret
|
from_secret: minio_secret
|
||||||
source: dist-master/**/*
|
source: dist-master/**/*
|
||||||
target: /latest/
|
target: /latest/
|
||||||
|
strip_prefix: dist-master/
|
||||||
path_style: true
|
path_style: true
|
||||||
endpoint: https://artifacts.fromouter.space
|
endpoint: https://artifacts.fromouter.space
|
||||||
when:
|
when:
|
||||||
|
@ -144,4 +147,4 @@ volumes:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 8673ede880d77df3453f6785035712d4fca3ee77525b107de154c891558f10f1
|
hmac: 9f4b08596bdaa078a6c60fc63d932084bab117c340a310903bbe96f31c0122bb
|
||||||
|
|
Loading…
Reference in a new issue