This repository was archived by the owner on Jan 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 1.35 KB
/
Makefile
File metadata and controls
28 lines (20 loc) · 1.35 KB
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
# TODO(jlewi): Need to sort out root vs project level Makefiles
CONTEXT=label-bot-dev
hydrate-prod:
rm -f ../acm-repos/issue-label-bot/namespaces/label-bot-prod/*
kustomize build -o ../acm-repos/issue-label-bot/namespaces/label-bot-prod deployment/overlays/prod
kustomize build -o ../acm-repos/issue-label-bot/namespaces/label-bot-prod auto-update/prod
kustomize build -o ../acm-repos/issue-label-bot/namespaces/label-bot-prod ../tekton/installs/prod
# TODO this is duplicated in the root Makefile
apply-dev:
kustomize build ./auto-update/dev | kubectl --context=$(CONTEXT) apply -f -
kustomize build ../tekton/installs/dev | kubectl --context=$(CONTEXT) apply -f -
update-image:
skaffold build --kube-context=${CONTEXT} -v info --file-output=latest_image.json
cd deployment/overlays/prod && kustomize edit set image gcr.io/issue-label-bot-dev/bot-worker=$(shell yq r latest_image.json builds[0].tag )
build-diff-image:
skaffold build --kube-context=${CONTEXT} -b gcr.io/issue-label-bot-dev/labelbot-diff -v info --file-output=labelbot-diff.image.json
set-diff-image:
cd auto-update/base && kustomize edit set image gcr.io/issue-label-bot-dev/labelbot-diff=$(shell yq r labelbot-diff.image.json builds[0].tag )
kpt cfg set ../tekton labelbot-diff-image $(shell yq r labelbot-diff.image.json builds[0].tag )
update-diff-image: build-diff-image set-diff-image