-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTaskfile.yaml
84 lines (70 loc) · 2.33 KB
/
Taskfile.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# https://taskfile.dev makefile commands. Requires installed taskfile for functionality
# useful commands during development
# run `task --list-all` to list all available commands
version: "3"
tasks:
cluster:create:
desc: create kind cluster for testing. Plugin is tested in Kind cluster and microk8s
cmds:
- kind create cluster
cluster:scan:
desc: >
Kind cluster for usage with argocd, needs fixed ~/.kube/config cluster server address
to address received in this command
open ~/.kube/config and change cluster IP to discovered from command
cmds:
- kubectl get endpoints
argo:password:
desc: >
port forward `kubectl port-forward svc/argocd-server -n argocd 8080:443`
and login with `admin` and password from this command
cmds:
- argocd admin initial-password -n argocd
argo:deploy:
desc: deploy argocd with cue plugin
cmds:
- kubectl apply -k ./plugin
argo:delete:
cmds:
- kubectl delete -k ./plugin | true
- kubectl delete -f ./examples/applications | true
argo:apply:
desc: try deploying cue application
cmds:
- kubectl apply -f ./examples/applications
app:test:
cmds:
- go test ./argocue/... -coverprofile=cover.out {{.CLI_ARGS}}
app:build:
cmds:
- CGO_ENABLED=0 go build -v -o main main.go
- sudo rm /usr/local/bin/argocue
- sudo ln -s $(pwd)/main /usr/local/bin/argocue
docker:build:
cmds:
- docker build --tag darkwind8/argocue:${tag_version}-amd64 .
docker:build:arm:
# ubuntu 22.04 amd64: sudo apt install -y qemu-user-static binfmt-support
cmds:
- docker buildx build --platform linux/arm64 --tag darkwind8/argocue:${tag_version}-arm64 .
docker:push:
cmds:
- docker push darkwind8/argocue:${tag_version}-amd64
docker:buildpush:
cmds:
- task: docker:build
- task: docker:push
docker:buildpusharchs:
cmds:
- task: docker:build
- task: docker:build:arm
- task: docker:push
- docker push darkwind8/argocue:${tag_version}-arm64
- >
docker manifest create
darkwind8/argocue:${tag_version}
--amend darkwind8/argocue:${tag_version}-amd64
--amend darkwind8/argocue:${tag_version}-arm64
- docker manifest push darkwind8/argocue:${tag_version}
env:
tag_version: v0.4.0