-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 769 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 769 Bytes
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
28
29
30
31
32
.PHONY: build deps lint run test
DOCKER_IMAGE=ghcr.io/libops/ojs:main
deps:
docker compose pull --ignore-buildable
build: deps
docker compose build
lint:
@docker compose config --format json| jq -e .services.ojs.image | grep libops
@if command -v hadolint > /dev/null 2>&1; then \
echo "Running hadolint on Dockerfiles..."; \
find . -name "Dockerfile" | xargs hadolint; \
else \
echo "hadolint not found, skipping Dockerfile validation"; \
fi
@if command -v json5 > /dev/null 2>&1; then \
echo "Running json5 validation on renovate.json5"; \
json5 --validate renovate.json5 > /dev/null; \
else \
echo "json5 not found, skipping renovate validation"; \
fi
run: build
docker compose up init
docker compose up -d
test: run
./scripts/test.sh