uses goreleaser
parent
9efb1042e3
commit
0282d78cd3
@ -1,6 +1 @@
|
||||
jitsiexporter_darwin_*
|
||||
jitsiexporter_freebsd_*
|
||||
jitsiexporter_linux_*
|
||||
jitsiexporter_netbsd_*
|
||||
jitsiexporter_openbsd_*
|
||||
jitsiexporter_windows_*
|
||||
dist/*
|
||||
|
@ -0,0 +1,60 @@
|
||||
---
|
||||
gitea_urls:
|
||||
api: https://git.xsfx.dev/api/v1/
|
||||
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- windows
|
||||
- darwin
|
||||
ldflags:
|
||||
- >
|
||||
-s -w
|
||||
-extldflags "-static"
|
||||
-X git.xsfx.dev/prometheus/jitsiexporter/cmd/main.version={{.Version}}
|
||||
-X git.xsfx.dev/prometheus/jitsiexporter/cmd/main.commit={{.ShortCommit}}
|
||||
-X git.xsfx.dev/prometheus/jitsiexporter/cmd/main.date={{.Date}}
|
||||
main: "./cmd/jitsiexporter/main.go"
|
||||
|
||||
archives:
|
||||
- replacements:
|
||||
darwin: macos
|
||||
386: i386
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
|
||||
dockers:
|
||||
- image_templates:
|
||||
- "quay.io/xsteadfastx/jitsiexporter:latest"
|
||||
- "quay.io/xsteadfastx/jitsiexporter:{{ .Tag }}"
|
||||
- "quay.io/xsteadfastx/jitsiexporter:{{ .Major }}"
|
||||
dockerfile: Dockerfile
|
||||
|
||||
checksum:
|
||||
name_template: "checksums.txt"
|
||||
|
||||
snapshot:
|
||||
name_template: "{{ .Tag }}-next"
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- "^docs:"
|
||||
- "^test:"
|
||||
- "^Bump version:"
|
||||
- "typo"
|
||||
- "^debug:"
|
||||
|
||||
nfpms:
|
||||
- formats:
|
||||
- apk
|
||||
- deb
|
||||
- rpm
|
||||
replacements:
|
||||
386: i386
|
||||
homepage: https://git.xsfx.dev/prometheus/jitsiexporter
|
||||
maintainer: Marvin Preuss <marvin@xsteadfastx.org>
|
@ -1,15 +1,4 @@
|
||||
FROM golang:1.14 AS base
|
||||
RUN set -ex \
|
||||
&& go get github.com/mitchellh/gox \
|
||||
&& go get github.com/vektra/mockery/.../
|
||||
|
||||
FROM base AS builder
|
||||
COPY . /go/src/github.com/xsteadfastx/jitsiexporter
|
||||
WORKDIR /go/src/github.com/xsteadfastx/jitsiexporter
|
||||
RUN set -ex \
|
||||
&& make build
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /go/src/github.com/xsteadfastx/jitsiexporter/jitsiexporter_linux_amd64 /bin/jitsiexporter
|
||||
COPY jitsiexporter /
|
||||
EXPOSE 9700
|
||||
ENTRYPOINT ["/bin/jitsiexporter", "-debug=true", "-host=0.0.0.0"]
|
||||
|
Loading…
Reference in New Issue