Skip to content

Adds scripts to CI image, cleans up Dockerfile

Nick Hurst requested to merge dev into master

Adds "quality-of-life" scripts that make managing docker in CI a bit easier.

  • docker-login to automatically login to the code.osu.edu docker registry
  • docker-rename-to-build to swap "pipeline names" out with "build names" (i.e. retag images that were tagged with the pipeline id with "build" to keep the cache around for pipelines that don't release)
    • docker-rename-to-build $CI_PIPELINE_ID centos will rename all images taged centos-$CI_PIPELINE_ID:tag with centos-build:tag
  • docker-cleanup for cleaning up the "pipeline names"
    • docker-cleanup $CI_PIPELINE_ID will grep for all images with the id in their name, as well as any containers created from them and delete them

Cleans up the Dockerfile as well

Merge request reports