Files
covergen/.drone.yml
Jur van den Berg 68756014be
All checks were successful
continuous-integration/drone/push Build is passing
Force CI to repackage the wasm_exec.js support file
2022-01-21 20:22:17 +01:00

64 lines
1.2 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
steps:
- name: build
image: golang:1.17
environment:
GOOS: js
GOARCH: wasm
commands:
- make 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"
- name: upload
image: plugins/s3
settings:
bucket: covergen
source: assets/**/*
target: /
strip_prefix: assets/
path_style: true
endpoint: https://s3.blacknova.io
access_key:
from_secret: minio_access_key_id
secret_key:
from_secret: minio_secret_access_key