#Simple Flask CD pipeline
-
Set up GitHub Account & Repo
-
Set up DockerHub account
-
python3 -m venv env
-
source env/Scripts/activate
-
pip install flask
-
pip freeze > requirements.txt
-
Add your
DOCKER_USERNAME
,DOCKER_PASSWORD
,DOCKERHUB_REPO
at Github -> Settings -> Secrets -
GitHub-> Repo -> Action ->
Publish Python package
->Set up this workflow
-
Paste contents of python-publish.yml
-
Start commit
-
GitHub Repo -> Paste contents of cd_config.yml to workflow description field
-
git add . && git commit -m"added app code" && git push
-
Navigate to DockerHub & discover your freshly built & served image of Flask App!
Detailed instructions: https://www.section.io/engineering-education/ci-cd-pipelines-with-flask-docker-and-github-actions/