devops: updated docker build command to include additional options for extra configuration.

This commit is contained in:
Rebecca Valente 2025-07-08 00:49:05 -03:00
parent 515679f580
commit 4a60627631

View File

@ -13,7 +13,7 @@ build-and-push docker image to local registry:
stage: build stage: build
script: script:
- if ! test -z "$DOCKERFILE_DIRECTORY"; then cd ${DOCKERFILE_DIRECTORY}; fi - if ! test -z "$DOCKERFILE_DIRECTORY"; then cd ${DOCKERFILE_DIRECTORY}; fi
- docker build -f "${DOCKERFILE_NAME}" -t "${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_TAG}" --progress=plain . - docker build -f "${DOCKERFILE_NAME}" -t "${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_TAG}" --progress=plain ${DOCKER_EXTRA_OPTS} .
- docker push "${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_TAG}" - docker push "${CI_REGISTRY_IMAGE}:${DOCKER_IMAGE_TAG}"
push docker to destination registry: push docker to destination registry: