-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yml
More file actions
46 lines (38 loc) · 1.01 KB
/
Taskfile.yml
File metadata and controls
46 lines (38 loc) · 1.01 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
---
version: "3"
tasks:
docker_build:
desc: Build the dotfiles Docker image to a container
cmds:
- docker build -t shricodev/dotfiles:latest --no-cache .
docker_run:
desc: Run the dotfiles Docker container interactively
cmds:
- docker run -it shricodev/dotfiles:latest /bin/bash
docker_build_and_run:
desc: Build the Docker image and then run the container
cmds:
- task: docker_build
- task: docker_run
local:
desc: Run ansible locally
dir: ansible
cmds:
- ansible-playbook main.yml --limit local --ask-become-pass
ubuntu_homelabs:
desc: Run ansible to set up system and dotfiles on ubuntu homelabs
dir: ansible
cmds:
- ansible-playbook main.yml --limit ubuntu_homelabs
stow:
desc: Deploy all dotfiles via stow
cmds:
- ./stow.sh stow
unstow:
desc: Remove all dotfile symlinks
cmds:
- ./stow.sh unstow
restow:
desc: Re-deploy all dotfiles via stow (unstow + stow)
cmds:
- ./stow.sh restow