Home

Awesome

pyaction-lite

A base Docker image for Github Actions implemented in Python

Docker HubDocker Image Version (latest by date) Docker Pulls
GitHubGitHub release (latest by date)
Image StatsDocker Image Size (latest by date)
Build Statusbuild
LicenseGitHub
SupportGitHub Sponsors Liberapay Ko-Fi

Summary

This Docker image is designed to support implementing Github Actions with Python. It uses Alpine Linux as a base to keep the image relatively small for faster loading of the Github Action. It then adds Python 3, and only Python 3. By using a prebuilt image, it prevents the Github Action from requiring an installation of python each time the action runs. It is not limited to use with Github Actions, so other use-cases where you only need python are applicable.

The pyaction-lite Docker image is based on pyaction. However, pyaction additionally includes git, so the pyaction image is a bit larger than pyaction-lite.

Multiplatform Image

pyaction-lite has the following platforms available:

Source Repository and Builds

The source repository is maintained on GitHub. The images are built on Github and pushed to Docker Hub, as well as the Github Container Registry using Github Actions.

Docker Tags and Versioning Scheme

Each image pushed to Docker Hub and the Github Container Registry is tagged as follows:

Semantic Versioning uses version numbers of the form: MAJOR.MINOR.PATCH, where differences in MAJOR correspond to incompatible changes, differences in MINOR correspond to introduction of backwards compatible new functionality, and PATCH corresponds to backwards compatible bug fixes.

Installation and Usage

The pre-built image is hosted on both Docker Hub and the Github Container Registry. You can use it in the following ways.

Docker Pull Command

Pull the latest image from Docker Hub with the following (replace latest with a specific version number if you prefer):

docker pull cicirello/pyaction-lite:latest

Pull from the Github Container Registry with:

docker pull ghcr.io/cicirello/pyaction-lite:latest

Use as a base image in a Dockerfile

Use as a base image in a Dockerfile (replace latest with a specific version number if you prefer):

FROM cicirello/pyaction-lite:latest

# The rest of your Dockerfile would go here.

Or you can use as a base image (via the Github Container Registry) with:

FROM ghcr.io/cicirello/pyaction-lite:latest

# The rest of your Dockerfile would go here.

License

Source Code License

The source code, including the Dockerfile and anything else within the Github repository for pyaction-lite, is licensed under the MIT License.

Image Licenses

As with all pre-built Docker images, the image itself (once built, or obtained from Docker Hub or the Github Container Registry) contains software that is covered by a variety of licenses. Since the base image is Alpine, this would include the licenses of the components of Alpine, as well as the licenses for Python.

If you build and distribute an image containing your software, using pyaction-lite as the base image, it is your responsibility to follow the licenses of all of the software contained within the image.