more archs and fixes version

master
Marvin Steadfast 4 years ago
parent 62a5558be7
commit 5102efe29e

@ -2,22 +2,27 @@
kind: pipeline
name: default
type: docker
steps:
- name: lint
image: golangci/golangci-lint:v1.24-alpine
commands:
- apk add --no-cache make
- make lint
- name: test
image: golang:1.14
commands:
- make test
- name: build
image: golang:1.14
commands:
- (cd /go; go get -v github.com/mitchellh/gox)
- (cd /go; go get -v github.com/vektra/mockery/.../)
- make build
- name: docker
image: plugins/docker
settings:
@ -28,11 +33,18 @@ steps:
from_secret: username
password:
from_secret: password
- name: publish to github
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files: jitsiexporter_linux_amd64
files:
- jitsiexporter_darwin_*
- jitsiexporter_freebsd_*
- jitsiexporter_linux_*
- jitsiexporter_netbsd_*
- jitsiexporter_openbsd_*
- jitsiexporter_windows_*
when:
event: tag

5
.gitignore vendored

@ -1 +1,6 @@
jitsiexporter_darwin_*
jitsiexporter_freebsd_*
jitsiexporter_linux_*
jitsiexporter_netbsd_*
jitsiexporter_openbsd_*
jitsiexporter_windows_*

@ -6,7 +6,7 @@ VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null
build:
export GOFLAGS=-mod=vendor ; \
go generate ./...; \
CGO_ENABLED=0 gox -osarch="linux/amd64" -mod vendor -ldflags '-extldflags "-static" -X "main.version=${VERSION}"' github.com/xsteadfastx/jitsiexporter/cmd/jitsiexporter
CGO_ENABLED=0 gox -mod vendor -ldflags '-extldflags "-static" -X "main.version=${VERSION}"' github.com/xsteadfastx/jitsiexporter/cmd/jitsiexporter
clean:
rm -f jitsiexporter

@ -10,8 +10,9 @@ import (
"github.com/xsteadfastx/jitsiexporter"
)
var version string = "development"
func main() {
version := "development"
ver := flag.Bool("version", false, "Prints version.")
url := flag.String("url", "", "URL of Jitsi Videobridge Colibri Stats.")
debug := flag.Bool("debug", false, "Enable debug.")

Loading…
Cancel
Save