- Log in to IBM Cloud.
- Click Create resource in the top right corner.
- Under Starter Kits, choose Python Microservice with Flask and click Create app in the next page.
- Name it
username-python-microservice, leaving everything else untouched and hit Create.
- Log in to IBM Cloud.
- Click
username-python-microservice in the Apps panel on the left. - In the App details tab, click Configure continuous delivery to enable the Continuous Delivery feature.
- In the Choose a deployment environment panel, pick Deploy to Cloud Foundry and hit Next.
- In the Configure toolchain panel, name the toolchain as
username-python-microservice-cf (wherecfrefers to "Cloud Foundry") and click Create. - Copy the Git URL in the Deployment details box and click the View toolchain button.
- Note: You might need to refresh the browser window in case the Git URL does not show up.
- Delete Git and Eclipse Orion Web IDE by clicking the three vertical dots in the top right corner of their cards.
- On the top right, click Add a Tool and choose GitHub from the catalog.
- Authorise access from IBM Cloud to your GitHub account by clicking the Authorize button.
- Under Repository type, choose Clone from the menu.
- Paste the URL you copied to Source repository URL.
- Choose your own username as Owner and name the repository as
username-python-microservice. - Make sure the Enable GitHub Issues and Track deployment of code changes boxes are checked.
- Click Create Integration.
- Log in to IBM Cloud.
- Click
username-python-microservice in the Apps panel on the left. - In the App details tab, click View toolchain.
- In the toolchain Overview tab, click the Delivery Pipeline card.
- In the next screen, click the gear icon in the Build Stage card and then Configure Stage.
- In the Input tab, choose the option in Git repository that leads to Github as Git URL.
- Save your work and run the Build Stage by clicking the
▶️ icon. - Watch as the Build Stage completes and triggers the Deploy Stage and Health Stage.