docsonnet/Makefile
Jeroen Op 't Eynde fedfb4920f
Extend render template with common usage & install instructions (#27)
* Extend render template with jsonnet-bundler instructions

* push usage/install templates up the stack

* ensure newline between docs and header

* correctly quote default args
2022-06-13 13:42:51 +02:00

21 lines
471 B
Makefile

.PHONY: build test push push-image docs
IMAGE_NAME ?= docsonnet
IMAGE_PREFIX ?= jsonnetlibs
IMAGE_TAG ?= 0.0.3
build:
docker buildx build -t $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG) .
test: build
push: build test push-image
push-image:
docker push $(IMAGE_PREFIX)/$(IMAGE_NAME):$(IMAGE_TAG)
docker push $(IMAGE_PREFIX)/$(IMAGE_NAME):latest
docs:
jsonnet -S -c -m doc-util/ \
-e "(import 'doc-util/main.libsonnet').render(import 'doc-util/main.libsonnet')"