qa update into main (#2)
All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 8s

Co-authored-by: stephen schuresko <mynameisdeleted@gmail.com>
Reviewed-on: https://192.168.1.134:3000/posts-api/papi-py/pulls/2
This commit was merged in pull request #2.
This commit is contained in:
2025-02-17 14:32:58 -05:00
parent 4d06b72132
commit 5d3ac0a8a1
12 changed files with 172 additions and 34 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
ENV=dev
VER=2
TAG=${ENV}-${VER}
REGISTRY=kube-reg.fairfaxmedia.net
SVC=papi/svc1
DOCK_IMG=${REGISTRY}/${SVC}:${TAG}
clean:
rm -rf .pytest_cache
rm -rf .coverage
rm -rf report.xml
rm -rf test.db
coverage: clean
pytest --cov=papi test_papi.py --junitxml=report.xml --cov-report=html --cov-report=xml --cov-report=term --cov-fail-under 90
docker-img: coverage
docker build -t ${DOCK_IMG} .
docker-push: docker-img
docker push ${DOCK_IMG}
deploy: docker-push
helm upgrade papi ./papi-helm/ -f ./papi-helm/v.${ENV}.yaml --set image.tag=${TAG}