-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (19 loc) · 931 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: build test
EXAMPLES_DIR=../runway-examples/content
META_BUILDPACKS=$(patsubst %, %buildpack.cnb, $(wildcard meta/*/))
build: build-builder
docker build -t r.planetary-quantum.com/runway-public/runway-runimage:jammy-full ./runimage
build-builder: $(META_BUILDPACKS)
pack -v builder create builder --config builder.toml --pull-policy if-not-present
meta/%/buildpack.cnb: meta/%/*.toml
pack -v buildpack package $@ --config meta/$*/package.toml --format file --pull-policy if-not-present
test: $(patsubst $(EXAMPLES_DIR)/%/, test-%, $(wildcard $(EXAMPLES_DIR)/*/))
show-tests:
@echo $(patsubst $(EXAMPLES_DIR)/%/, test-%, $(wildcard $(EXAMPLES_DIR)/*/))
test-%: FORCE
pack build runway-buildpack-test --path "$(EXAMPLES_DIR)/$*" \
--builder builder \
--verbose --pull-policy if-not-present
FORCE:
test-docker test-hugo test-jekyll test-ruby test-README.md.m4:
@echo "ignored (does not use buildpacks)"