This is an automated email from the ASF dual-hosted git repository.

aw pushed a commit to branch YETUS-1138
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/YETUS-1138 by this push:
     new 193350e  fixup! YETUS-1138. Better support for multiple architectures
193350e is described below

commit 193350e9278d478c5a87fd69464030e59461edc1
Author: Allen Wittenauer <[email protected]>
AuthorDate: Fri Nov 12 19:38:04 2021 -0800

    fixup! YETUS-1138. Better support for multiple architectures
---
 hooks/build | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hooks/build b/hooks/build
index b96ebdc..2cf2166 100755
--- a/hooks/build
+++ b/hooks/build
@@ -20,6 +20,10 @@ GIT_URL=$(git config --get remote.origin.url)
 DOCKER_BUILDKIT=1
 export DOCKER_BUILDKIT
 
+# shellcheck disable=SC2034
+DOCKER_CLI_EXPERIMENTAL=enabled
+export DOCKER_CLI_EXPERIMENTAL
+
 if [[ -z "${SOURCE_COMMIT}" ]]; then
   SOURCE_COMMIT="$(git rev-parse --verify HEAD)"
   export SOURCE_COMMIT
@@ -49,6 +53,7 @@ docker buildx build --platform linux/amd64,linux/arm64 \
   --label "git-commit-branch=${SOURCE_BRANCH}" \
   --label "git-commit-url=${GIT_URL}" \
   --tag "${DOCKER_REPO}-base:${DOCKER_TAG}" \
+  --push \
   precommit/src/main/shell/test-patch-docker
 
 # Build the full image using base above
@@ -59,4 +64,5 @@ docker buildx build --platform linux/amd64,linux/arm64 \
   --tag "${DOCKER_REPO}:${DOCKER_TAG}" \
   --build-arg DOCKER_TAG="${DOCKER_TAG}" \
   --build-arg DOCKER_REPO="${DOCKER_REPO}" \
+  --push \
   .

Reply via email to