This repository was archived by the owner on Mar 28, 2025. It is now read-only.
forked from monostream/cert-manager-linode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
84 lines (71 loc) · 1.81 KB
/
Taskfile.yml
File metadata and controls
84 lines (71 loc) · 1.81 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
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
version: '3'
vars:
GREETING: Hello, World!
tasks:
default:
cmds:
- echo "{{.GREETING}}"
silent: true
build:
aliases:
- b
cmds:
- go mod tidy
- goreleaser release --snapshot --clean
setup:
cmds:
- go -version
- brew install goreleaser
- go install github.com/caarlos0/svu@latest
release:
aliases:
- r
cmds:
- task: tag
- task: publish
tag:
aliases:
- t
cmds:
- git tag "$($HOME/go/bin/svu next)"
- git push --tags
publish:
aliases:
- p
vars:
Version:
sh: git tag --contains HEAD | tail -n 1
cmds:
- goreleaser release --clean
pub-docker-manual:
cmds:
- task: publish-docker
vars: {IMAGE: "ghcr.io/ice-bergtech/cert-manager-linode:{{.Version}}"}
- task: publish-docker
vars: {IMAGE: "ghcr.io/ice-bergtech/cert-manager-linode:latest"}
publish-docker:
vars:
Version:
sh: git tag --contains HEAD | tail -n 1
IMAGE: "ghcr.io/ice-bergtech/cert-manager-linode:{{.Version}}"
aliases:
- pd
cmds:
- docker build . --pull --platform=linux/amd64 --tag {{.IMAGE}}
- docker push {{.IMAGE}}
edit-api:
aliases:
- ea
cmds:
- docker-compose -f docker/compose-api-edit.yml up -d
- echo 'Viewer - https://127.0.0.1:4000'
- echo 'Editor - https://127.0.0.1:4001'
pre_data:
aliases:
- pd
cmds:
- touch netdata.db && rm netdata.db
# find each csv and tsv files and load into sqlite db
- find ./data \( -name "*.csv" \) | xargs -I {} sh -c 'sqlite3 netdata.db -cmd ".mode csv" ".import {} data_{}"'
- find ./data \( -name "*.tsv" \) | xargs -I {} sh -c 'sqlite3 netdata.db -cmd ".mode tabs" ".import {} data_{}"'