-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 695 Bytes
/
Makefile
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
#!make
include .env
export $(shell sed 's/=.*//' .env)
version := $(shell git rev-parse --short HEAD)
.PHONY: all install version clean lint build
all: clean install
install:
poetry install
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name .cache -exec rm -rf {} +
find . -name .pytest_cache -exec rm -rf {} +
find . -name __pycache__ -exec rm -rf {} +
format:
black .
deploy:
poetry export --output requirements.txt
docker build -t donchev7/icelandic-model:v$(version) .
docker push donchev7/icelandic-model:v$(version)
create_machine:
azure/create_vm.sh
delete_machine:
azure/delete_vm.sh