-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
39 lines (33 loc) · 1.05 KB
/
Taskfile.yml
File metadata and controls
39 lines (33 loc) · 1.05 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
version: '3'
tasks:
build-demo-image:
desc: "Build the demos image"
cmds:
- docker build -f demos/Dockerfile --no-cache . -t devspace-demo:latest
shell-demo-image:
desc: "Open shell in the demos container"
cmds:
- docker run -v .:/devspace --entrypoint bash -it devspace-demo:latest
generate-gif:
desc: "Run vhs on tape file to generate gif. Pass the path for the .tape file"
cmds:
- docker run -v .:/devspace -w /devspace/demos/ -it devspace-demo:latest {{.CLI_ARGS}}
setup-demo-env:
desc: "Setup the demo directories"
cmd: |-
pushd /var/tmp/demo
rm -rvf *
for demo_repo in backend-repo frontend-repo infra-repo
do
git init repositories_dir/$demo_repo --initial-branch main
pushd repositories_dir/$demo_repo
git commit --allow-empty -m 'initial commit'
popd
done
mkdir worktrees_dir
run-demo:
desc: "Command to execute demo from the demos directory"
dir: ./demos/
deps:
- setup-demo-env
cmd: vhs {{.CLI_ARGS}}