forked from renovatebot/renovate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (50 loc) · 1.23 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
LOG_LEVEL ?= info
RENOVATE_CONFIG_FILE ?= example/config.json
IMG ?= plural-renovate:latest
ifndef RENOVATE_TOKEN
$(error $$RENOVATE_TOKEN environment variable must be set)
endif
.PHONY: build
build:
yarn build
.PHONY: run
run:
@LOG_LEVEL=${LOG_LEVEL} \
RENOVATE_TOKEN=${RENOVATE_TOKEN} \
RENOVATE_CONFIG_FILE=${RENOVATE_CONFIG_FILE} \
node dist/renovate.js
.PHONY: start
start:
@LOG_LEVEL=${LOG_LEVEL} \
RENOVATE_TOKEN=${RENOVATE_TOKEN} \
RENOVATE_CONFIG_FILE=${RENOVATE_CONFIG_FILE} \
yarn start
.PHONY: docker-run
docker-run:
@docker run \
-it \
-e LOG_LEVEL \
-e RENOVATE_TOKEN \
-e RENOVATE_CONFIG_FILE=${RENOVATE_CONFIG_FILE} \
-v example:/example \
${IMG}
.PHONY: docker-build
docker-build:
docker build -t ${IMG} .
.PHONY: install
install:
@helm upgrade \
--install \
--set config.renovate.token=${RENOVATE_TOKEN} \
--set config.plural.token=${RENOVATE_API_TOKEN} \
--set config.renovate.repositories={"floreks/cd-renovate"} \
--set config.renovate.apiUrl="https://console.cdaws.onplural.sh/gql" \
plural-renovate \
charts/plural-renovate
.PHONY: install-oci
install-oci:
@helm upgrade \
--install \
plural-renovate \
oci://ghcr.io/pluralsh/plural-renovate \
--version 1.0.3-helm