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 tojobs.<job_id>.strategy. Reference the followingmatrixcontext properties in the job definition.matrix.nameThis provides container’s version number, e.g.,
"2.3.1". Assign its value tojobs.<job_id>.name.matrix.osThis identifies the target GitHub Actions runner, e.g.,
"ubuntu-latest". Assign its value tojobs.<job_id>.runs-on.
The
matrix.runsproperty 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.prepareThis sets up the run-time environment.
matrix.runs.pullThis specifies the build dependencies to download.
matrix.runs.buildBuild and tag the container image with these commands.
matrix.runs.historyThese commands pretty print the container image’s build history for later review.
matrix.runs.testThis procedure tests the container image.
matrix.runs.imagesThis lists the image tag(s) created by this job.