Skip to content

Commit 622275b

Browse files
committed
gitlab-ci: Fix ort-build-image Docker warning
Resolve 'WARNING! Using --password via the CLI is insecure. Use --password-stdin' whilst building the ORT docker image. Signed-off-by: Thomas Steenbergen <[email protected]>
1 parent e67ae3e commit 622275b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ ort-build-image:
345345
DOCKER_BUILDKIT: 1
346346
DOCKER_DRIVER: overlay2
347347
before_script:
348-
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
348+
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
349349
script:
350350
- export ORT_DOCKERFILE_FILE=${ORT_DOCKERFILE_FILE:-"./Dockerfile"}
351351
- export ORT_SCANCODE_VERSION=${ORT_SCANCODE_VERSION:-"30.1.0"}

0 commit comments

Comments
 (0)