|
|
@ -16,9 +16,9 @@ steps:
|
|
|
|
image: node:lts
|
|
|
|
image: node:lts
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- npm run build
|
|
|
|
- npm run build
|
|
|
|
- tar -czf legacy.tar.gz ./dist/*
|
|
|
|
- tar -czf legacy.tar.gz -C ./dist .
|
|
|
|
- npm run build -- --modern
|
|
|
|
- npm run build -- --modern
|
|
|
|
- tar -czf morden.tar.gz ./dist/*
|
|
|
|
- tar -czf morden.tar.gz -C ./dist .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: release
|
|
|
|
- name: release
|
|
|
@ -44,11 +44,21 @@ steps:
|
|
|
|
secret_key:
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
source: dist/**/*
|
|
|
|
source: dist/**/*
|
|
|
|
target: /
|
|
|
|
strip_prefix: dist/
|
|
|
|
|
|
|
|
target: /public
|
|
|
|
path_style: true
|
|
|
|
path_style: true
|
|
|
|
endpoint: https://fs.sz2.ixarea.com
|
|
|
|
endpoint: https://fs.sz2.ixarea.com
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
- name: cache
|
|
|
|
- name: upload
|
|
|
|
host:
|
|
|
|
image: plugins/s3
|
|
|
|
path: /tmp/cache
|
|
|
|
settings:
|
|
|
|
|
|
|
|
bucket: unlock-music
|
|
|
|
|
|
|
|
access_key:
|
|
|
|
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
|
|
|
|
secret_key:
|
|
|
|
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
|
|
|
|
source: ./*.tar.gz
|
|
|
|
|
|
|
|
target: /build/${DRONE_BUILD_NUMBER}
|
|
|
|
|
|
|
|
path_style: true
|
|
|
|
|
|
|
|
endpoint: https://fs.sz2.ixarea.com
|
|
|
|