-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
executable file
·42 lines (42 loc) · 1023 Bytes
/
Taskfile.yaml
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"
dotenv:
- .dec.env
vars:
MICROMAMBA_ENV: security
MICROMAMBA_FILE: "{{.MICROMAMBA_ENV}}.env.yaml"
tasks:
env:set:
sources:
- "{{.MICROMAMBA_FILE}}"
- requirements.txt
cmd: micromamba create -f '{{.MICROMAMBA_FILE}}' -y
up:
dir: ./database/
cmd: docker compose up -d
down:
dir: ./database/
cmd: docker compose down
run:app:
deps:
- env:set
- up
cmd: micromamba -n '{{.MICROMAMBA_ENV}}' run python -m src.mfa
mypy:
deps:
- env:set
cmd: micromamba -n '{{.MICROMAMBA_ENV}}' run mypy src/mfa/__main__.py
decrypt:
sources:
- .enc.env
generates:
- .dec.env
cmd: sops -d .enc.env > .dec.env
sops:install:
cmds:
- curl -LO https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64
- sudo mv sops-v3.8.1.linux.amd64 /usr/local/bin/sops
- sudo chmod +x /usr/local/bin/sops
delete:volume:
deps:
- down
cmd: docker volume rm database_postgres-data