Beginner: Automate the Build¶
This track sets up Continuous Integration: a pipeline that tests, builds, and publishes your app automatically on every commit. You build it one station at a time.
You will learn how to:
- Put your app in a repository a pipeline can watch
- Write a GitHub Actions workflow
- Build your Docker image automatically on every push
- Run tests in the pipeline, and read a failing build
- Publish the finished image with no manual login
Prerequisites¶
You should have:
- Finished the Docker course, or be comfortable building and running images
- Basic familiarity with Git
- A free GitHub account
Tutorials¶
-
Why Automate?
The manual pain, what CI/CD is, and getting your app onto GitHub.
-
Meet GitHub Actions
Workflows, triggers, jobs, and steps. Run your first pipeline.
-
Building in the Pipeline
Build your Docker image automatically on every push.
-
Testing in the Pipeline
Add tests so the pipeline checks your app actually works.
-
Reading a Red Build
Break a test on purpose, read the log, and fix it calmly.
-
Publishing Automatically
Push the finished image to a registry using built-in credentials.
-
Capstone: Build, Test, Push
Ship a real new feature through the whole pipeline.
When you finish, move on to the Intermediate track, where the pipeline starts deploying your app, not just publishing it.