Commit 6846c521 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

params

parent 69c57d51
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -33,14 +33,14 @@ buildkit:
      echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > ~/.docker/config.json
  script:
    - |
      buildctl-daemonless.sh --debug \
        build \
      buildctl-daemonless.sh ${CUSTOM_BUILDKIT_COMMON_PARAMETERS} \
        build ${CUSTOM_BUILDKIT_BUILD_PARAMETERS} \
        --opt build-arg:DOCKER_REGISTRY="${CI_REGISTRY}" \
        --frontend dockerfile.v0 \
        --local context=${CUSTOM_BUILDPATH} \
        --local dockerfile=${CUSTOM_DOCKERFILE} \
        --import-cache type=local,src=.buildkit-cache \
        --export-cache type=local,dest=.buildkit-cache \
        --import-cache type=local,src=.cache-buildkit \
        --export-cache type=local,dest=.cache-buildkit \
        --output type=image,name="${IMAGE_PATH}:${CUSTOM_TAGPREFIX}-${CI_COMMIT_SHORT_SHA}",push=true
  rules:
    - if: '$CI_PIPELINE_SOURCE == "push"'
@@ -50,4 +50,4 @@ buildkit:
  cache:
    key: "$CI_COMMIT_REF_SLUG"
    paths:
      - .buildkit-cache
      - .cache-buildkit