bashbrew-jobs

Contents

bashbrew-jobs#

Generate Docker container image build jobs.

Output a GitHub Actions matrix strategy that builds and tests Docker Official Images Library-style container bimages.

Outputs#

strategy:

This action outputs a single-dimension matrix strategy in JSON format. Decode this output with fromJSON() and assign the result to jobs.<job_id>.strategy. Reference the following matrix context properties in the job definition.

matrix.name

This provides container’s version number, e.g., "2.3.1". Assign its value to jobs.<job_id>.name.

matrix.os

This identifies the target GitHub Actions runner, e.g., "ubuntu-latest". Assign its value to jobs.<job_id>.runs-on.

The matrix.runs property specifies each step of the container image build/test procedure. This simplifies monitoring and lets developers selectively override the process. Set the inputs of bashbrew-build to the corresponding properties below.

matrix.runs.prepare

This sets up the run-time environment.

matrix.runs.pull

This specifies the build dependencies to download.

matrix.runs.build

Build and tag the container image with these commands.

matrix.runs.history

These commands pretty print the container image’s build history for later review.

matrix.runs.test

This procedure tests the container image.

matrix.runs.images

This lists the image tag(s) created by this job.