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 (#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:
parent
01f689fb4a
commit
b2e9d3bb12
9 changed files with 106 additions and 120 deletions
17
Makefile
17
Makefile
|
|
@ -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/ \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue