In this task the pipeline becomes a complete solution: a merge to main puts the new version on AWS. Write the deploy job Assume the role with aws-actions/configure-aws-credentials. Option 1: EKS A Deployment (two replicas, readiness probe on /healthz) and a Service of type LoadBalancer, in deploy/. The job sets the …
Read MoreIn this task the branch workflow's placeholders become real. Lint the code ruff check and ruff format --check. FastAPI track: mypy as well. Run the unit tests pytest with coverage; fail under a threshold. TODO: the threshold. actions/setup-python with pip caching. A matrix of Python versions. TODO: which. Run the same …
Read MoreIn this task the pull request runs what is too slow for every push. Add a database TODO: PostgreSQL in place of the Task 1 storage, or keep SQLite and skip this. Run the integration tests Start the image built in image-build, and a database as a service container. Call every route over HTTP, end to end. TODO: pass the …
Read MoreIn this task you try out tools that inspect the code and the image, and keep the ones worth a required check. Scan the code CodeQL (GitHub code scanning) for Python. Bandit. TODO: or Semgrep. Scan the dependencies Dependabot alerts and version updates. The dependency review action on pull requests. pip-audit. Scan for …
Read MoreThis post is written in English. Yes, like most High-Tech fields you should be able to read English material. Step 1: What do I currently know? Am I already an experienced IT engineer? This will help me with the "Ops" part of DevOps. If I went through a course in the army, or somewhere else in the industry it is a good …
Read More