web/.drone.yml

37 lines
832 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
- 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: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 19:59:26 +00:00
source: |
*.zip
sha256sum.txt
2022-11-26 20:11:13 +00:00
target: "${DRONE_REPO}/${DRONE_BUILD_NUMBER}/"
path_style: true