-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
68 lines (65 loc) · 1.86 KB
/
Copy pathTaskfile.yml
File metadata and controls
68 lines (65 loc) · 1.86 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
# https://taskfile.dev
version: "3"
vars:
IMAGE_NAME: dots-test:dev
IMAGE_NAME_DEB: dots-test:deb
tasks:
run: go run ./cmd/dots {{.CLI_ARGS}}
test:
cmds:
- go test ./pkg/... {{.CLI_ARGS}}
sources:
- ./pkg/**/*.go
silent: true
install:
desc: Install the dots CLI
cmds:
- go install ./cmd/dots
sources:
- cmd/**/*.go
- pkg/**/*.go
install:completion:
desc: Install the dots CLI and generate Zsh completions.
cmds:
- go install ./cmd/dots
- dots completion zsh > '{{env "HOME"}}/.cache/dotfiles/zsh/completions/_dots'
sources:
- cmd/**/*.go
- pkg/**/*.go
package:deb:
desc: "Build .deb artifacts locally via goreleaser snapshot mode (no publish)."
cmds:
- goreleaser release --snapshot --clean --skip=publish
podman:build:
desc: "Build the dots-test:dev smoke image into local podman storage."
cmds:
- podman build -t {{.IMAGE_NAME}} .
sources:
- Taskfile.yml
- Containerfile
- .containerignore
- cmd/**/*.go
- pkg/**/*.go
- go.mod
- go.sum
- containers/**/*
podman:test:
desc: "Run the dots-test:dev smoke image (executes containers/verify.sh)."
deps: [podman:build]
cmds:
- podman run --rm {{.IMAGE_NAME}}
podman:shell:
desc: "Drop into a bash shell inside the dots-test:dev image (debug)."
deps: [podman:build]
cmds:
- podman run --rm -it --entrypoint bash {{.IMAGE_NAME}}
podman:build:deb:
desc: "Build the dots-test image from the .deb produced by `task package:deb`."
deps: [package:deb]
cmds:
- podman build --build-arg BUILD_FROM=deb -t {{.IMAGE_NAME_DEB}} .
podman:test:deb:
desc: "Run the dots-test image built from the .deb (executes containers/verify.sh)."
deps: [podman:build:deb]
cmds:
- podman run --rm {{.IMAGE_NAME_DEB}}