This repository holds the Dockerfiles for SLATE CI-specific container images.
- Container images will be rebuilt when there is a change to a folder tracked by
build_folders.txt
. - Images in the
master
branch will automatically receive the 'latest' tag.
- Automatically builds and pushes Docker images on changes.
- Build failure in one folder will not prevent other builds in other folders.
- Encourages
Dockerfile
best practices with lint, scan etc. - Automatically adds OCI labels to every built Docker image as defined in each
Dockerfile
.
Copy ./examples
to a new folder and:
- Add the new folder name to
build_folders.txt
- Update the
LABEL
s in./<new folder>/Dockerfile
using the OpenContainers spec.
Make your changes to an image (e.g. ./<your folder>/
) and increment the org.opencontainers.image.version
label in ./<your folder>/Dockerfile
. Pushing your changes to master
will automatically trigger a new image build.
When a pull request is made to this repo Dockle lint and Trivy scans will run.
Containers are currently pushed to OSG Harbor (specifically to the hub.opensciencegrid.org/slate project).
Increment the minor number of the org.opencontainers.image.version
label in the associated Dockerfile
.
GitHub workflow files are stored in .github/workflows
.