All checks were successful
continuous-integration/drone/push Build is passing
83 lines
1.5 KiB
YAML
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
|
|
- yarn install
|
|
- "cp /wasm/* public/"
|
|
- yarn 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
|
|
|