Files
covergen/.drone.yml
Jur van den Berg cb8400eea3
Some checks reported errors
continuous-integration/drone/push Build was killed
Cleanup frontend
2022-04-19 22:07:43 +02:00

83 lines
1.5 KiB
YAML

---
kind: pipeline
type: kubernetes
name: build-clis
trigger:
branch:
- main
steps:
- name: build
image: golang:1.17
commands:
- make build-cross-clis
- name: upload
image: plugins/s3
settings:
bucket: covergen
source: dist/*
target: /dist/
strip_prefix: dist/
path_style: true
endpoint: https://s3.blacknova.io
access_key:
from_secret: minio_access_key_id
secret_key:
from_secret: minio_secret_access_key
---
kind: pipeline
type: kubernetes
name: build-wasm
trigger:
branch:
- main
volumes:
- name: wasm
temp: {}
steps:
- name: build wasm
image: golang:1.17
environment:
GOOS: js
GOARCH: wasm
volumes:
- name: wasm
path: /wasm
commands:
- make wasm
- "cp covergen.wasm /wasm/covergen.wasm"
# Grab the wasm shim from the docker image, otherwise there is a mismatch
- "cp /usr/local/go/misc/wasm/wasm_exec.js /wasm/wasm_exec.js"
- name: build frontend
image: node:16
volumes:
- name: wasm
path: /wasm
commands:
- cd frontend
- npm install
- "cp /wasm/* public/"
- npm run build
- name: upload
image: plugins/s3
settings:
bucket: covergen
source: frontend/dist/**/*
target: /
strip_prefix: frontend/dist/
path_style: true
endpoint: https://s3.blacknova.io
access_key:
from_secret: minio_access_key_id
secret_key:
from_secret: minio_secret_access_key