feat: enhance deployment and installation process in build-and-push workflow
This commit is contained in:
6
Makefile
6
Makefile
@@ -17,8 +17,8 @@ clean:
|
||||
rm -rf test.db
|
||||
rm -rf htmlcov
|
||||
|
||||
install:
|
||||
pip3 install -r requirements.txt
|
||||
install.log: requirements.txt
|
||||
pip3 install -r requirements.txt > install.log
|
||||
report.xml: *.py
|
||||
pytest --cov=papi --cov=posts --cov=users test_papi.py test_posts.py test_users.py --junitxml=report.xml --cov-report=html --cov-report=xml --cov-report=term --cov-fail-under 90
|
||||
|
||||
@@ -53,7 +53,7 @@ k8s-tok:
|
||||
kubectl --context microk8s create token serviceaccounts-cluster-admin
|
||||
echo login at https://kube.fairfaxmedia.net
|
||||
|
||||
run: install
|
||||
run: install.log
|
||||
uvicorn papi:app --reload --port 8912 --host 0.0.0.0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user