Attempt at making drone work
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
33
.drone.yml
33
.drone.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user