opensciencegrid/OSG Build Container Action

Builds and optionally caches/pushes the image

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jun 12, 2025
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: opensciencegrid/build-container-action@56f59b3b44cd48b20de57487558ea04e49181703 # v0.6.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
osg_seriesOSG release series used to install packages, intended for use with the OSG software-base image. Passed along as the BASE_OSG_SERIES build argument (default: 3.6)no3.6
osg_repoOSG Yum repositories enabled (including the upcoming equivalent), intended for use with the OSG software-base image. Passed along as the BASE_YUM_REPO build argument (default: release)norelease
base_osOperating system of the base image, intended for use with the OSG software-base image. Passed along as the BASE_OS build argument (default: el8)noel8
contextPath to container files, including Dockerfileno.
output_imageName of the image and tag for the resultant image build following the <name>/<tag> format, e.g. "opensciencegrid/osgvo-docker-pilot:3.6-release"no""
cache_imageStore built images in GitHub the GitHub cache (default: true)notrue
push_imagePush the built image to a container registry (default: false). Requires 'registry_url', 'registry_user', and 'registry_pass' arguments.nofalse
registry_urlURL for the target container registry no
registry_userUsername for the target container registry. Should be kept in some form of GitHub secret.no
registry_passPassword for the target container registry. Should be kept in some form of GitHub secret.no
platformPlatform of the image to build, e.g. "linux/amd64"nolinux/amd64
push_by_digestPush the artifact to the registry without any associated tags.nofalse
buildx_setupWhether to run docker buildx setup. Should be set to false to preserve caching if multiple docker builds are run in a single job.notrue
timestampTimestamp tag for image. Intended for use as a unique, immutable identifier. For example, "20221207-1729". Set to current timestamp if unspecified.no""
clean_before_buildWhether to undo all unstaged changes to the repo prior to build. May interfere with artifacts generated in previous GHA steps.notrue
namedescription
image-listComma-separated list of image names. For example, "opensciencegrid/osgvo-docker-pilot:3.6-release,opensciencegrid/osgvo-docker-pilot:3.6-release-20221207-1729"
timestamp-imageImage name, including timestamp tag. Intended for use as a unique, immutable identifier. For example, "opensciencegrid/osgvo-docker-pilot:3.6-release-20221207-1729"
cache_keyKey referencing the GitHub cache containing the layers of the built container image
digestKey referencing the GitHub cache containing the layers of the built container image