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:
Matthias Riegler 2023-01-28 21:41:50 +01:00 committed by GitHub
parent 37dd4fbc10
commit b56a421ef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 54 additions and 99 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/ \