Commit c308014a authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add TARGET_PLATFORMS CI variable

parent 2b425c47
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
variables:
  TARGET_PLATFORMS:
    description: Docker/OCI platform specifiers to build images for;
      comma separated

stages:
- check
- build
@@ -38,6 +43,7 @@ Checks:
    --local dockerfile=.
    --opt target=$TARGET
    --output=type=image,name=$CI_REGISTRY_IMAGE/$TARGET:build-$CI_PIPELINE_IID,push=true
    ${TARGET_PLATFORMS:+--opt platform=$TARGET_PLATFORMS}
    ${REVISION:+--opt build-arg:REVISION=$REVISION}
    ${VERSION:+--opt build-arg:VERSION=$VERSION}