# yaml-language-server: $schema=https://taskfile.dev/schema.json version: "3" tasks: build: desc: Build go code cmd: go build silent: true run-migrations-dev: desc: Execute database migrations env: SOFTPLAYER_DB_CONNECTION_STRING: postgres://softplayer:qwertyu9@localhost:30432/softplayer?sslmode=disable cmd: go run main.go migrate --migrations-path=file://migrations run-server-dev: desc: Run the local dev server env: SOFTPLAYER_DB_CONNECTION_STRING: postgres://softplayer:qwertyu9@localhost:30432/softplayer?sslmode=disable SOFTPLAYER_REDIS_HOST: localhost:30379 cmd: go run main.go serve --dev-mode --reflection deploy-local-env: desc: Run a kind cluster and deploy deps deps: - kind-cluster - helmfile-deploy kind-cluster: desc: Run a kind cluster cmd: kind create cluster --config ./kind-config.yaml kind-cluster-remove: desc: Remove the kind cluster cmd: kind delete cluster helmfile-deploy: desc: Deploy the helmfile for the local dev cmd: helmfile apply