It's time for a challenge!
You’ve just joined a team that’s developing an API for mobile applications. They’re using containers for the first time and need to set up a CI/CD pipeline to publish container images.
Their last project used an integration workflow for python and the plan is to use that workflow on the new project as well.
The team has asked you to help them set up a repo for the integration workflow so it can be used in the latest project and any new projects that come up in the future.
-
Create two new repos.
-
In the first repo, add a workflow for a Python application. Create a workflow using the starter workflow for Python applications.
-
Update the workflow so it can be called from another workflow.
-
In the second repo, add the exercise files and then create a workflow using the starter workflow for Publish Docker Container. Update the workflow to call the integration workflow.
Additionally, add permissions for the integration workflow. After the
uses
block, add:permissions: contents: read
-
Add a job to build and publish the code as a container image once the integration tests are complete.
This requirement is partially completed in the previous step by adding the starter workflow.
However, the workflow still needs to be modified so the build and publish steps run after the integration tests.