2022-04-30 07:00:02 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-04-30 07:26:31 +00:00
|
|
|
name: build-and-deploy
|
2022-04-30 07:00:02 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: node:lts-bullseye
|
|
|
|
commands:
|
|
|
|
- apt-get update -y && apt-get install git -y
|
2022-04-30 07:36:42 +00:00
|
|
|
- yarn && yarn build
|
2022-04-30 07:00:02 +00:00
|
|
|
|
|
|
|
- name: upload
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
|
|
|
bucket: home-app
|
2022-04-30 07:41:37 +00:00
|
|
|
region: us-ashburn-02
|
|
|
|
acl: public-read
|
2022-04-30 07:00:02 +00:00
|
|
|
endpoint: https://storage.186526.xyz
|
|
|
|
access_key:
|
|
|
|
from_secret: s3_access_key
|
|
|
|
secret_key:
|
|
|
|
from_secret: s3_secret_key
|
|
|
|
source: dist/**/*
|
2022-04-30 07:40:00 +00:00
|
|
|
target: /dist/
|
|
|
|
path_style: true
|