mirror of
https://github.com/tenox7/wrp.git
synced 2026-07-09 02:16:47 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
007f7f87d6 | ||
|
|
fb712136b5 | ||
|
|
89426c969d |
92
.goreleaser.yml
Normal file
92
.goreleaser.yml
Normal file
@@ -0,0 +1,92 @@
|
||||
version: 2
|
||||
|
||||
project_name: wrp
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
|
||||
builds:
|
||||
- main: .
|
||||
binary: wrp
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- freebsd
|
||||
- openbsd
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
- arm
|
||||
goarm:
|
||||
- "7"
|
||||
ldflags:
|
||||
- -s -w
|
||||
|
||||
archives:
|
||||
- formats:
|
||||
- tar.gz
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
formats:
|
||||
- zip
|
||||
|
||||
dockers:
|
||||
- image_templates:
|
||||
- "tenox7/wrp:{{ .Tag }}-amd64"
|
||||
- "tenox7/wrp:latest-amd64"
|
||||
use: buildx
|
||||
goarch: amd64
|
||||
dockerfile: Dockerfile.goreleaser
|
||||
build_flag_templates:
|
||||
- "--platform=linux/amd64"
|
||||
|
||||
- image_templates:
|
||||
- "tenox7/wrp:{{ .Tag }}-arm64"
|
||||
- "tenox7/wrp:latest-arm64"
|
||||
use: buildx
|
||||
goarch: arm64
|
||||
dockerfile: Dockerfile.goreleaser
|
||||
build_flag_templates:
|
||||
- "--platform=linux/arm64"
|
||||
|
||||
docker_manifests:
|
||||
- name_template: "tenox7/wrp:{{ .Tag }}"
|
||||
image_templates:
|
||||
- "tenox7/wrp:{{ .Tag }}-amd64"
|
||||
- "tenox7/wrp:{{ .Tag }}-arm64"
|
||||
|
||||
- name_template: "tenox7/wrp:latest"
|
||||
image_templates:
|
||||
- "tenox7/wrp:latest-amd64"
|
||||
- "tenox7/wrp:latest-arm64"
|
||||
|
||||
nfpms:
|
||||
- package_name: wrp
|
||||
vendor: Antoni Sawicki
|
||||
homepage: https://github.com/tenox7/wrp
|
||||
maintainer: Antoni Sawicki <as@tenoware.com>
|
||||
description: Web Rendering Proxy
|
||||
license: Apache-2.0
|
||||
formats:
|
||||
- deb
|
||||
- rpm
|
||||
- apk
|
||||
|
||||
checksum:
|
||||
name_template: "checksums.txt"
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- "^docs:"
|
||||
- "^test:"
|
||||
|
||||
release:
|
||||
github:
|
||||
owner: tenox7
|
||||
name: wrp
|
||||
5
Dockerfile.goreleaser
Normal file
5
Dockerfile.goreleaser
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM chromedp/headless-shell
|
||||
COPY wrp /wrp
|
||||
ENTRYPOINT ["/wrp"]
|
||||
ENV PATH="/headless-shell:${PATH}"
|
||||
LABEL maintainer="as@tenoware.com"
|
||||
4
go.mod
4
go.mod
@@ -11,6 +11,8 @@ require (
|
||||
github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4
|
||||
github.com/lithammer/shortuuid/v4 v4.2.0
|
||||
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
|
||||
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c
|
||||
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef
|
||||
github.com/tenox7/gip v1.0.1
|
||||
golang.org/x/image v0.36.0
|
||||
golang.org/x/net v0.51.0
|
||||
@@ -24,8 +26,6 @@ require (
|
||||
github.com/gobwas/pool v0.2.1 // indirect
|
||||
github.com/gobwas/ws v1.4.0 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c // indirect
|
||||
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef // indirect
|
||||
golang.org/x/sys v0.42.0 // indirect
|
||||
golang.org/x/text v0.34.0 // indirect
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user