66 lines
1.4 KiB
TOML
66 lines
1.4 KiB
TOML
[env]
|
|
LAST_FM_USER = 'change-me'
|
|
LAST_FM_API_KEY = 'change-me'
|
|
OPENAI_KEY = 'change-me'
|
|
FLUXON_KEY_FINGERPRINT = 'change-me'
|
|
FLUXON_LICENSE_KEY = 'change-me'
|
|
DBUI_URL = 'sqlite:data/music_library_dev.db'
|
|
|
|
[tools]
|
|
hurl = 'latest'
|
|
sqlite = 'latest'
|
|
gh = 'latest'
|
|
|
|
[task_config]
|
|
includes = ["scripts"]
|
|
|
|
# PUBLIC TASKS
|
|
|
|
# CI
|
|
|
|
[tasks."ci:watch"]
|
|
description = "Monitor CI status"
|
|
run = "gh run watch"
|
|
|
|
# PRODUCTION
|
|
|
|
[tasks."prod:console"]
|
|
description = 'Open an ssh console to the production env'
|
|
run = 'ssh music-library-prod'
|
|
|
|
[tasks."prod:prune-backups"]
|
|
confirm = 'Are you sure you want to delete all downloaded database backups?'
|
|
description = 'Deletes all downloaded database backups'
|
|
run = 'rm data/music_library_prod*'
|
|
|
|
[tasks."prod:test"]
|
|
description = 'Run HTTP tests against production'
|
|
run = 'hurl --test test/prod.hurl'
|
|
|
|
# DEVELOPMENT/TEST
|
|
|
|
[tasks.test]
|
|
description = 'Run project tests'
|
|
run = 'mix test'
|
|
|
|
[tasks."dev:readme-preview"]
|
|
description = 'Preview the README file via a GH flavoured markdown rendered'
|
|
run = 'gh gfm-preview README.md'
|
|
|
|
[tasks."dev:fix-translations-conflict"]
|
|
run = [
|
|
'git co --theirs priv/gettext/default.pot',
|
|
'git co --theirs priv/gettext/en/LC_MESSAGES/default.po',
|
|
'mix gettext.extract --merge',
|
|
]
|
|
|
|
# DOCKER
|
|
|
|
[tasks."docker:build"]
|
|
description = 'Builds and tags the application Docker image'
|
|
run = 'docker compose build'
|
|
|
|
[tasks."docker:push"]
|
|
description = 'Push the image to the registry'
|
|
run = 'docker compose push'
|