generated from ik-workshop/renovate-bug-14322
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 860 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
28
29
30
31
SHELL = /bin/sh -o pipefail
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
CI_RENOVATE_IMAGE := renovate/renovate:latest
LOG_LEVEL := debug
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
setup: ## Setup dependencies
@brew bundle
hooks: ## install pre commit.
@pre-commit install
@pre-commit gc
@pre-commit autoupdate
validate: ## Validate files with pre-commit hooks
@pre-commit run --all-files
run: ## Nothing to RUN yet
@docker run --rm -it \
-e RENOVATE_TOKEN \
-e LOG_LEVEL=$(LOG_LEVEL) \
-v ${PWD}/.cache:/tmp/renovate \
-v ${PWD}/config-$(name).js:/usr/src/app/config.js \
-v ${PWD}/repos.json:/usr/src/app/repos.json \
$(CI_RENOVATE_IMAGE) renovate --dry-run=false