You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1004 B
43 lines
1004 B
--- |
|
kind: pipeline |
|
name: default |
|
|
|
steps: |
|
- name: build static files for storybook |
|
image: node:16.13.1-alpine3.14 |
|
commands: |
|
- 'yarn install' |
|
- 'yarn build-storybook' |
|
|
|
- name: build storybook to develop |
|
image: amazon/aws-cli |
|
environment: |
|
AWS_ACCESS_KEY_ID: |
|
from_secret: AWS_ACCESS_KEY_ID |
|
AWS_SECRET_ACCESS_KEY: |
|
from_secret: AWS_SECRET_ACCESS_KEY |
|
commands: |
|
- aws --endpoint=https://api.minio.poyner.page s3 sync ./storybook-static s3://drcl-develop --delete |
|
when: |
|
branch: |
|
- develop |
|
|
|
- name: build storybook to master |
|
image: amazon/aws-cli |
|
environment: |
|
AWS_ACCESS_KEY_ID: |
|
from_secret: AWS_ACCESS_KEY_ID |
|
AWS_SECRET_ACCESS_KEY: |
|
from_secret: AWS_SECRET_ACCESS_KEY |
|
commands: |
|
- aws --endpoint=https://api.minio.poyner.page s3 sync ./storybook-static s3://drcl --delete |
|
when: |
|
branch: |
|
- master |
|
|
|
trigger: |
|
branch: |
|
- master |
|
- develop |
|
event: |
|
- push
|
|
|