This commit is contained in:
48
.drone.yml
48
.drone.yml
@@ -1,29 +1,28 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: build-linux-amd64
|
name: build-clis
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
environment:
|
|
||||||
GOOS: linux
|
|
||||||
GOARCH: amd64
|
|
||||||
commands:
|
commands:
|
||||||
- "go build -o covergen_$GOOS-$GOARCH ./cmd/covergen"
|
- make build-cross-clis
|
||||||
---
|
- name: upload
|
||||||
kind: pipeline
|
image: plugins/s3
|
||||||
type: kubernetes
|
settings:
|
||||||
name: build-darwin-amd64
|
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
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: golang:1.17
|
|
||||||
environment:
|
|
||||||
GOOS: darwin
|
|
||||||
GOARCH: amd64
|
|
||||||
commands:
|
|
||||||
- "go build -o covergen_$GOOS-$GOARCH ./cmd/covergen"
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
@@ -37,3 +36,18 @@ steps:
|
|||||||
GOARCH: wasm
|
GOARCH: wasm
|
||||||
commands:
|
commands:
|
||||||
- make wasm
|
- make wasm
|
||||||
|
- 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
|
||||||
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@ covergen
|
|||||||
!covergen/
|
!covergen/
|
||||||
*.pdf
|
*.pdf
|
||||||
assets/*.wasm
|
assets/*.wasm
|
||||||
|
dist/
|
||||||
8
Makefile
8
Makefile
@@ -1,3 +1,9 @@
|
|||||||
|
.PHONY: build-cross-clis
|
||||||
|
build-cross-clis:
|
||||||
|
rm -rf ./dist && mkdir ./dist
|
||||||
|
GOOS=linux GOARCH=amd64 go build -o dist/covergen.linux-amd64 ./cmd/covergen
|
||||||
|
GOOS=darwin GOARCH=amd64 go build -o dist/covergen.darwin-amd64 ./cmd/covergen
|
||||||
|
|
||||||
|
.PHONY: wasm
|
||||||
wasm:
|
wasm:
|
||||||
GOOS=js GOARCH=wasm go build -o assets/covergen.wasm ./cmd/wasm/main.go
|
GOOS=js GOARCH=wasm go build -o assets/covergen.wasm ./cmd/wasm/main.go
|
||||||
.PHONY: wasm
|
|
||||||
|
|||||||
@@ -89,5 +89,11 @@
|
|||||||
<iframe id="front"></iframe>
|
<iframe id="front"></iframe>
|
||||||
<iframe id="back"></iframe>
|
<iframe id="back"></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="download-links">
|
||||||
|
Download the CLI:
|
||||||
|
<a href="/dist/covergen.linux-amd64">Linux amd64</a>
|
||||||
|
<a href="/dist/covergen.darwin-amd64">Darwin amd64</a>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user