ci: add Dockerfile
This commit is contained in:
parent
72ee09b064
commit
65a56f2658
15 changed files with 382 additions and 70 deletions
9
Makefile
9
Makefile
|
|
@ -1,7 +1,14 @@
|
|||
build:
|
||||
docker build --target run -t git.roboces.dev/catalin/secretsanta:latest .
|
||||
|
||||
run--sls:
|
||||
@echo "Activating virtual environment and starting serverless offline"
|
||||
@. .venv/bin/activate && cd apps/http/sls && npx sls offline
|
||||
|
||||
run--litestar:
|
||||
@echo "Starting litestar"
|
||||
@. cd apps/http/litestar/ && pdm run litestar run
|
||||
|
||||
deploy--sls:
|
||||
@echo "Deploying via serverless framework"
|
||||
@. cd apps/http/sls && pdm export -G sls -f requirements --prod > requirements.txt && npx sls deploy
|
||||
|
|
@ -11,4 +18,4 @@ lint:
|
|||
|
||||
tests--unit:
|
||||
pdm run pytest --cov secretsanta tests
|
||||
coverage html
|
||||
coverage html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue