A very simple Docker Build GH action that builds a python:3.11-alpine
image with a Hello World! Python Script
For this demo I made it as simple as possible.
- Checkout Code
- Set up Docker Buildx
- Build Docker image using
Dockerfile
only locally - Run the Docker Image and save the stdout
- Compare the stdout from the previous step, if the output is correct the image was correctly build. Otherwise exit code 1
Trigger a Manual Workflow Dispatch for "Build and Test Docker Image"