chore/fix: switch release pipeline to goreleaser & ghcr.io (#43)

* chore: add goreleaser config + adapt Dockerfile
* chore: cleanup makefile and deprecated pipeline
* chore: go mod tidy -go=1.19
* feat: add release pipeline

---------

Signed-off-by: Matthias Riegler <me@xvzf.tech>
This commit is contained in:
Matthias Riegler 2023-02-16 09:38:05 +01:00 committed by GitHub
parent 01f689fb4a
commit b2e9d3bb12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 106 additions and 120 deletions

View file

@ -1,19 +1,10 @@
.PHONY: build test push push-image docs
IMAGE_NAME ?= docsonnet
IMAGE_PREFIX ?= jsonnetlibs
IMAGE_TAG ?= 0.0.4
.PHONY: build release docs
build:
docker buildx build -t $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG) .
goreleaser build --rm-dist --snapshot
test: build
push: build test push-image
push-image:
docker push $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG)
docker push $(IMAGE_PREFIX)/$(IMAGE_NAME):latest
release:
goreleaser release --rm-dist
docs:
jsonnet -S -c -m doc-util/ \