1
0
forked from um/web
web/.drone.yml

38 lines
898 B
YAML
Raw Normal View History

2022-11-26 19:59:26 +00:00
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: node:16.18-bullseye
commands:
- apt-get update
- apt-get install -y cmake jq zip
- ./scripts/build-wasm.sh
- npm ci
- npm run test
- ./scripts/build-and-package.sh legacy
- ./scripts/build-and-package.sh extension
2022-11-26 20:11:13 +00:00
- ./scripts/build-and-package.sh modern
2022-11-26 19:59:26 +00:00
- sha256sum *.zip > sha256sum.txt
2022-11-26 20:59:08 +00:00
- mkdir -p upload
- mv *.zip sha256sum.txt upload/
2022-11-26 19:59:26 +00:00
- name: upload
2022-11-26 20:11:13 +00:00
image: "plugins/s3"
2022-11-26 19:59:26 +00:00
settings:
2022-11-26 20:59:08 +00:00
path_style: true
2022-11-26 20:11:13 +00:00
endpoint:
from_secret: S3_ENDPOINT
2022-11-26 19:59:26 +00:00
access_key:
from_secret: S3_ACCESS_KEY
secret_key:
from_secret: S3_SECRET_KEY
2022-11-26 20:11:13 +00:00
bucket:
from_secret: S3_BUCKET
region: "auto"
2022-11-26 20:59:08 +00:00
source: "upload/*"
strip_prefix: "upload/"
2022-11-26 20:11:13 +00:00
target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/"