Verified Commit 1fc85460 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Uncouple repo name from build target in build-image CI template

parent 9c055031
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -63,6 +63,12 @@ variables:
    description: Docker/OCI platform specifiers for built images to target;
      comma separated

  IMAGE_NAME:
    value: $TARGET
    description: Distinguishing portion of the image repository name; if
      non-empty this will be appended to "${CI_REGISTRY_IMAGE}/build/".
      Note this is NOT the tag for the image.


workflow:
  # Ensure pipeline can run when triggered from MR pipelines
@@ -77,7 +83,7 @@ Build:
  script:
  - |
    tee build.env <<ENV
    BUILD_TAG=${CI_REGISTRY_IMAGE}/build${TARGET+/$TARGET}:pipeline-${CI_PIPELINE_IID}
    BUILD_TAG=${CI_REGISTRY_IMAGE}/build${IMAGE_NAME+/$IMAGE_NAME}:pipeline-${CI_PIPELINE_IID}
    ENV
    . build.env
  - |