-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
48 lines (38 loc) · 1.19 KB
/
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
43
44
45
46
47
48
# https://taskfile.dev
version: "3"
vars:
BOTWAY_UNIX_PATH: /usr/local/bin
BOTWAY_WINDOWS_PATH: ~\AppData\Local\botway\bin
tasks:
default:
cmds:
- task: build
build:
cmds:
- go mod tidy
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -extldflags "-static"' -o core
- turbo run build
dev:
cmds:
- turbo run dev --parallel
run:
cmds:
- go run ./main.go
deploy:
cmds:
- railway up
docs:
cmds:
- git clone https://github.com/algolia/docsearch-scraper ds-scarper
- cp .env ds-scarper
- if ! [ -x "$(command -v pyenv)" ]; then curl https://pyenv.run | bash && exec $SHELL; else echo "Pyenv is installed 🐍"; fi
- if ! [ -x "$(command -v pipenv)" ]; then pip install --user pipenv; else echo "Pipenv is installed 🐍"; fi
- if ! [ -d ~/.pyenv/versions/3.6.15 ]; then pyenv install 3.6.15; else echo 'Python 3.6.15 is installed 🐍'; fi
- cd ds-scarper && pipenv install && pipenv shell './docsearch run ../algolia.config.json && exit && cd ..'
- rm -rf ./ds-scarper
docker:
cmds:
- docker build -t smcr/core .
remove-docker-images:
cmds:
- docker rmi smcr/core