-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·49 lines (33 loc) · 1011 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: clean clean-test clean-pyc clean-build docs help
.DEFAULT_GOAL := help
test:
python -m pytest
mlflow:
mlflow ui
docs:
pdoc music_flow -o ./docs
lint:
ruff check .
clean:
pre-commit run --all-files
build:
sam build --use-container -t template.yaml --debug
local: build
sam local start-api --debug --port 5858
validate:
sam validate --debug
sync: validate build
sam sync --stack-name musicflow-sam-app --watch
deploy: build
sam deploy \
--stack-name musicflow-sam-app \
--s3-bucket portfolio-on-lambda-2999-v3 \
--capabilities CAPABILITY_NAMED_IAM \
--resolve-image-repos \
--debug
ci-deploy:
sam deploy --stack-name ${{env.STACK_NAME}} --s3-bucket ${{env.S3_BUCKET}} --capabilities CAPABILITY_IAM --resolve-image-repos --no-confirm-changeset --no-fail-on-empty-changeset
ecr-login:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 398212703914.dkr.ecr.us-east-1.amazonaws.com
delete:
sam delete --stack-name musicflow-sam-app