forked from UrielCohen456/argocd-executor-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (25 loc) · 866 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
32
.DEFAULT_GOAL := apply
.PHONY: setup
setup:
bash ./scripts/setup_cluster.sh
.PHONY: build
build:
go mod tidy
docker build --load -t crenshawdotdev/argocd-executor-plugin:latest -f ./Dockerfile .
kind load docker-image crenshawdotdev/argocd-executor-plugin:latest --name argo-workflows-plugin-argocd
.PHONY: manifests
manifests:
argo executor-plugin build ./manifests
.PHONY: apply
apply: manifests
yq '.data["sidecar.container"] |= (from_yaml | (.image = "crenshawdotdev/argocd-executor-plugin:latest") | to_yaml)' manifests/argocd-executor-plugin-configmap.yaml | kubectl apply -n argo -f -
kubectl apply -n argo -f examples/rbac.yaml
.PHONY: submit
submit:
argo submit -n argo examples/argocd-example-wf.yaml --serviceaccount workflow
.PHONY: clean
clean:
bash scripts/delete_cluster.sh
.PHONY: test
test:
go test -v ./... -coverprofile cover.out