mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-11 22:10:13 +01:00
chore/fix: switch release pipeline to goreleaser & ghcr.io (#40)
* chore: add goreleaser config + adapt Dockerfile Signed-off-by: Matthias Riegler <me@xvzf.tech> * chore: cleanup makefile and deprecated pipeline Signed-off-by: Matthias Riegler <me@xvzf.tech> * chore: go mod tidy -go=1.19 Signed-off-by: Matthias Riegler <me@xvzf.tech> --------- Signed-off-by: Matthias Riegler <me@xvzf.tech>
This commit is contained in:
parent
37dd4fbc10
commit
b56a421ef2
7 changed files with 54 additions and 99 deletions
35
.goreleaser.yaml
Normal file
35
.goreleaser.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
project_name: docsonnet
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
builds:
|
||||
- binary: docsonnet
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
dockers:
|
||||
- image_templates:
|
||||
- "ghcr.io/jsonnet-libs/docsonnet:{{ .Version }}-amd64"
|
||||
use: buildx
|
||||
dockerfile: Dockerfile
|
||||
build_flag_templates:
|
||||
- "--platform=linux/amd64"
|
||||
- image_templates:
|
||||
- "ghcr.io/jsonnet-libs/docsonnet:{{ .Version }}-arm64v8"
|
||||
use: buildx
|
||||
goarch: arm64
|
||||
dockerfile: Dockerfile
|
||||
build_flag_templates:
|
||||
- "--platform=linux/arm64/v8"
|
||||
docker_manifests:
|
||||
- name_template: ghcr.io/jsonnet-libs/docsonnet:{{ .Version }}
|
||||
image_templates:
|
||||
- ghcr.io/jsonnet-libs/docsonnet:{{ .Version }}-amd64
|
||||
- ghcr.io/jsonnet-libs/docsonnet:{{ .Version }}-arm64v8
|
||||
Loading…
Add table
Add a link
Reference in a new issue