Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
demo-exe committed Mar 28, 2024
1 parent decfbe7 commit 4c0e672
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions hack/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,25 @@ function do_build {
# --export-cache type=inline \
# --import-cache type=registry,ref="${IMAGE_BASE_NAME}" \
set -x
# buildctl
docker build \
--progress=plain \
--local context=. \
--local dockerfile=. \
--opt filename="${DOCKERFILE}" \
--opt build-arg:BUILD_TYPE=${BUILD_TYPE} \
--opt build-arg:BASE=${VPP_IMAGE_BASE}_${BUILD_TYPE} \
--opt build-arg:DEVBASE=${VPP_IMAGE_BASE}_dev_${BUILD_TYPE} \
--opt label:quay.expires-after="${IMAGE_EXPIRES_AFTER}" \
"$@"
# buildctl build \
# --frontend dockerfile.v0 \
# --progress=plain \
# --local context=. \
# --local dockerfile=. \
# --opt filename="${DOCKERFILE}" \
# --opt build-arg:BUILD_TYPE=${BUILD_TYPE} \
# --opt build-arg:BASE=${VPP_IMAGE_BASE}_${BUILD_TYPE} \
# --opt build-arg:DEVBASE=${VPP_IMAGE_BASE}_dev_${BUILD_TYPE} \
# --opt label:quay.expires-after="${IMAGE_EXPIRES_AFTER}" \
# "$@"
docker buildx build \
--progress plain \
--file "${DOCKERFILE}" \
--build-arg BUILD_TYPE=${BUILD_TYPE} \
--build-arg BASE=${VPP_IMAGE_BASE}_${BUILD_TYPE} \
--build-arg DEVBASE=${VPP_IMAGE_BASE}_dev_${BUILD_TYPE} \
--label "quay.expires-after=${IMAGE_EXPIRES_AFTER}" \
. "$@"
set +x
}

Expand Down

0 comments on commit 4c0e672

Please sign in to comment.