# https://taskfile.dev version: '3' vars: BUILD_DIR: build TASK_LIST: task -l VERSION: sh: - git describe --tags tasks: default: cmds: - echo "See all available tasks with {{.TASK_LIST}}" silent: true dist: desc: Build tarballs for backend and frontend cmds: - task: dist-be - task: dist-fe dist-be: internal: true cmds: - rm -rf {{.BUILD_DIR}} - mkdir -p {{.BUILD_DIR}} - tar czvf {{.BUILD_DIR}}/funquail-be-{{.VERSION}}.tar.gz --owner prometheus --group prometheus --exclude-vcs api/ dist-fe: internal: true cmds: - tar czvf {{.BUILD_DIR}}/funquail-fe-{{.VERSION}}.tar.gz --owner prometheus --group prometheus --exclude-vcs front/dist