Loading gitlab-ci.yml +5 −5 Original line number Diff line number Diff line Loading @@ -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"' Loading @@ -50,4 +50,4 @@ buildkit: cache: key: "$CI_COMMIT_REF_SLUG" paths: - .buildkit-cache - .cache-buildkit Loading
gitlab-ci.yml +5 −5 Original line number Diff line number Diff line Loading @@ -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"' Loading @@ -50,4 +50,4 @@ buildkit: cache: key: "$CI_COMMIT_REF_SLUG" paths: - .buildkit-cache - .cache-buildkit