-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
42 lines (38 loc) · 1.1 KB
/
Taskfile.yml
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
version: "3"
tasks:
devenv:install:
desc: Install dependencies for the devenv
dir: devenv
env:
PDM_IGNORE_ACTIVE_VENV: 1
cmds:
- pdm install
sources:
- pyproject.toml
- pdm.lock
devenv:provision:
desc: Provision the devenv
dir: devenv
deps:
- devenv:install
cmds:
- pdm run pyinfra inventory.py deploy.py -y {{.ARGS}}
vars:
DEFAULT_ARGS: --data install_editor=True
--data install_terminal=True
--data install_languages=True
--data install_ssh=True
--data install_utilities=True
--data install_workflow=True
ARGS: "{{default .DEFAULT_ARGS .CLI_ARGS}}"
provisioner:provision:
desc: Provision the provisioner
dir: ansible
cmds:
- ansible-playbook -i production provisioner.yml {{.CLI_ARGS}}
tools:spacelift:build:
desc: Build and push the Spacelift image
dir: tools/spacelift
cmds:
- docker build --platform="linux/amd64" -t ghcr.io/vgijssel/setup/spacelift-runner-ansible:latest .
- docker push ghcr.io/vgijssel/setup/spacelift-runner-ansible:latest