-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
53 lines (52 loc) · 1.12 KB
/
Taskfile.yml
File metadata and controls
53 lines (52 loc) · 1.12 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
version: '3'
tasks:
doc:
cmds:
- 'go doc -http'
install:
cmds:
- 'go install github.com/rrgmc/helm-render-ui'
test:
cmds:
- 'go test ./...'
ui-init:
dir: './ui'
cmds:
- 'npm update'
ui-dev:
dir: './ui'
cmds:
- 'npm start'
ui-build:
dir: './ui'
cmds:
- 'npm run build'
- 'npm run zip'
current-version:
cmds:
- 'echo "Version: {{.GIT_TAG_CURRENT}}"'
silent: true
vars:
GIT_TAG_CURRENT:
sh: 'git describe --tags --abbrev=0'
release-version:
cmds:
- 'echo "Version: {{.GIT_TAG_CURRENT}} => {{.VERSION}}"'
- task: release-version-internal
vars:
GIT_TAG_CURRENT:
sh: 'git describe --tags --abbrev=0'
requires:
vars: [VERSION]
preconditions:
- sh: 'test -z "$(git status --porcelain)"'
msg: 'there are uncommited git changes'
silent: true
release-version-internal:
internal: true
prompt: "Creating and pushing tag {{.VERSION}}. Are you sure?"
cmds:
- 'git tag {{.VERSION}}'
- 'git push --tags'
requires:
vars: [VERSION]