opensciencegrid/OSG Build Container Action
Builds and optionally caches/pushes the image
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Jun 12, 2025
- License
- Apache 2.0
Pinned Snippet
uses: opensciencegrid/build-container-action@56f59b3b44cd48b20de57487558ea04e49181703 # v0.6.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| osg_series | OSG 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) | no | 3.6 |
| osg_repo | OSG 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) | no | release |
| base_os | Operating system of the base image, intended for use with the OSG software-base image. Passed along as the BASE_OS build argument (default: el8) | no | el8 |
| context | Path to container files, including Dockerfile | no | . |
| output_image | Name 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_image | Store built images in GitHub the GitHub cache (default: true) | no | true |
| push_image | Push the built image to a container registry (default: false). Requires 'registry_url', 'registry_user', and 'registry_pass' arguments. | no | false |
| registry_url | URL for the target container registry | no | — |
| registry_user | Username for the target container registry. Should be kept in some form of GitHub secret. | no | — |
| registry_pass | Password for the target container registry. Should be kept in some form of GitHub secret. | no | — |
| platform | Platform of the image to build, e.g. "linux/amd64" | no | linux/amd64 |
| push_by_digest | Push the artifact to the registry without any associated tags. | no | false |
| buildx_setup | Whether to run docker buildx setup. Should be set to false to preserve caching if multiple docker builds are run in a single job. | no | true |
| timestamp | Timestamp tag for image. Intended for use as a unique, immutable identifier. For example, "20221207-1729". Set to current timestamp if unspecified. | no | "" |
| clean_before_build | Whether to undo all unstaged changes to the repo prior to build. May interfere with artifacts generated in previous GHA steps. | no | true |
Outputs
| name | description |
|---|---|
| image-list | Comma-separated list of image names. For example, "opensciencegrid/osgvo-docker-pilot:3.6-release,opensciencegrid/osgvo-docker-pilot:3.6-release-20221207-1729" |
| timestamp-image | Image name, including timestamp tag. Intended for use as a unique, immutable identifier. For example, "opensciencegrid/osgvo-docker-pilot:3.6-release-20221207-1729" |
| cache_key | Key referencing the GitHub cache containing the layers of the built container image |
| digest | Key referencing the GitHub cache containing the layers of the built container image |