Attempt at making drone work
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-01-22 19:48:47 +01:00
parent 6bfa971b0a
commit 0c6cdcf1f5
5 changed files with 28 additions and 741 deletions

View File

@@ -3,9 +3,9 @@ kind: pipeline
type: kubernetes
name: build-clis
trigger:
branch:
- main
#trigger:
# branch:
# - main
steps:
- name: build
@@ -36,23 +36,42 @@ trigger:
branch:
- main
volumes:
- name: wasm
temp: {}
steps:
- name: build
- 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 assets/wasm_exec.js"
- "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: assets/**/*
source: frontend/dist/**/*
target: /
strip_prefix: assets/
strip_prefix: frontend/dist/
path_style: true
endpoint: https://s3.blacknova.io