File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ ort-build-image:
347
347
before_script :
348
348
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
349
349
script :
350
+ - export ORT_DOCKERFILE_FILE=${ORT_DOCKERFILE_FILE:-"./Dockerfile"}
350
351
- export ORT_SCANCODE_VERSION=${ORT_SCANCODE_VERSION:-"30.1.0"}
351
352
- apk add --no-cache git
352
353
- |
@@ -375,7 +376,7 @@ ort-build-image:
375
376
--build-arg ORT_URL="$ORT_URL"
376
377
--build-arg BUILDKIT_INLINE_CACHE=1
377
378
--build-arg SCANCODE_VERSION="$ORT_SCANCODE_VERSION"
378
- -f ./Dockerfile .
379
+ -f $ORT_DOCKERFILE_FILE .
379
380
- docker push $CI_REGISTRY_IMAGE/ort:$ORT_REVISION
380
381
- docker push $CI_REGISTRY_IMAGE/ort:$MAIN_TAG
381
382
- cd ..
@@ -386,7 +387,7 @@ ort-build-image:
386
387
--tag $CI_REGISTRY_IMAGE/ort-custom:$MAIN_TAG
387
388
--build-arg ORT_DOCKER_IMAGE="${CI_REGISTRY_IMAGE}/ort:latest"
388
389
--build-arg BUILDKIT_INLINE_CACHE=1
389
- -f ./Dockerfile .
390
+ -f $ORT_DOCKERFILE_FILE .
390
391
- docker push $CI_REGISTRY_IMAGE/ort-custom:$ORT_REVISION
391
392
- docker push $CI_REGISTRY_IMAGE/ort-custom:$MAIN_TAG
392
393
rules :
@@ -413,4 +414,4 @@ pages:
413
414
- dashboard/**/*
414
415
artifacts :
415
416
paths :
416
- - public
417
+ - public
You can’t perform that action at this time.
0 commit comments