Skip to content

Commit

Permalink
Update builder.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Nov 21, 2024
1 parent 1ac3283 commit f4b524d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ else
fi

if [ "$(id -u)" -eq 0 ]; then
BUILDKIT_COMMAND="buildctl --addr=docker-container://metacall_builder_buildkit build"
BUILDKIT_COMMAND="buildctl --addr=docker-container://metacall_builder_buildkit"
else
export BUILDKITD_FLAGS=--oci-worker-no-process-sandbox
BUILDKIT_COMMAND="buildctl-daemonless.sh build"
BUILDKIT_COMMAND="buildctl-daemonless.sh"
fi

${BUILDER_BINARY} $@ | ${BUILDKIT_COMMAND} \
${BUILDER_BINARY} $@ | ${BUILDKIT_COMMAND} build \
--export-cache type=registry,ref=${EXPORT_REGISTRY},registry.insecure=true \
--import-cache type=registry,ref=${IMPORT_REGISTRY},registry.insecure=true \
--output type=image,name=registry:5000/metacall/${IMAGE_NAME},push=true,registry.insecure=true

0 comments on commit f4b524d

Please sign in to comment.