-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
40 lines (32 loc) · 1.14 KB
/
Taskfile.yml
File metadata and controls
40 lines (32 loc) · 1.14 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
version: "3"
dotenv: [".env"] # Load environment variables from .env
tasks:
init:
desc: Initializes the project.
cmds:
- scp ./raspberry-pi/etc/systemd/system/voicekit-clock.service $PI_HOST:~/voicekit-clock.service
sync:
desc: Sync code to Raspberry Pi.
cmds:
- rsync -avz ./src/voicekit-clock/ $PI_HOST:$PI_PROJECT_PATH
infra:login:
desc: Log in to AWS so that other infra tasks are available.
cmds:
- echo "Current AWS profile - AWS_PROFILE '$AWS_PROFILE', AWS_DEFAULT_PROFILE '$AWS_DEFAULT_PROFILE'"
- aws sso login
infra:diff:
desc: Deploys the infrastructure and server-less code through AWS CDK.
cmds:
- cd infra/cdk && cdk diff
infra:deploy:
desc: Deploys the infrastructure and server-less code through AWS CDK.
cmds:
- cd infra/cdk && cdk deploy
infra:deploy:hot-swap:
desc: Deploys the infrastructure and server-less code through AWS CDK as Hotswap deployment.
cmds:
- cd infra/cdk && cdk deploy --hot-swap
infra:destroy:force:
desc: Delete the AWS CDK stack and shut down all related resources.
cmds:
- cd infra/cdk && cdk destroy