This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
The following commit(s) were added to refs/heads/main by this push:
new fcdb6623112 [fix] register docker actions as submodules (#391)
fcdb6623112 is described below
commit fcdb6623112b5e57f49da0a9fd1fac2b8ca3cf11
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Mon Apr 20 10:08:47 2026 -0700
[fix] register docker actions as submodules (#391)
* [fix] clone docker actions locally to bypass enterprise allowlist
Enterprise policy blocks docker/setup-buildx-action@v3,
docker/login-action@v3, and docker/build-push-action@v5 as
third-party actions. Follow the paths-filter pattern from
apache/doris: clone each action into .github/actions/<name>
at a pinned commit and reference it via a local path.
Co-Authored-By: Claude Opus 4.7 <[email protected]>
* [fix] register docker actions as submodules and fix pinned SHAs
Register docker/setup-buildx-action, docker/login-action, and
docker/build-push-action as submodules under .github/actions/,
matching the paths-filter pattern used by apache/doris.
Also correct the pinned commit SHAs in build.yml — the previous
commit had them mismapped because parallel gh api calls returned
out of order.
---
.github/actions/build-push-action | 1 +
.github/actions/login-action | 1 +
.github/actions/setup-buildx-action | 1 +
.github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++----
.gitmodules | 9 +++++++++
5 files changed, 43 insertions(+), 4 deletions(-)
diff --git a/.github/actions/build-push-action
b/.github/actions/build-push-action
new file mode 160000
index 00000000000..ca052bb54ab
--- /dev/null
+++ b/.github/actions/build-push-action
@@ -0,0 +1 @@
+Subproject commit ca052bb54ab0790a636c9b5f226502c73d547a25
diff --git a/.github/actions/login-action b/.github/actions/login-action
new file mode 160000
index 00000000000..c94ce9fb468
--- /dev/null
+++ b/.github/actions/login-action
@@ -0,0 +1 @@
+Subproject commit c94ce9fb468520275223c153574b00df6fe4bcc9
diff --git a/.github/actions/setup-buildx-action
b/.github/actions/setup-buildx-action
new file mode 160000
index 00000000000..8d2750c68a4
--- /dev/null
+++ b/.github/actions/setup-buildx-action
@@ -0,0 +1 @@
+Subproject commit 8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ded95ab8274..8b8f82f6ef2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -265,11 +265,38 @@ jobs:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
+ - name: Checkout docker/setup-buildx-action
+ run: |
+ rm -rf ./.github/actions/setup-buildx-action
+ git clone https://github.com/docker/setup-buildx-action
.github/actions/setup-buildx-action
+
+ pushd .github/actions/setup-buildx-action &>/dev/null
+ git checkout 8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ popd &>/dev/null
+
+ - name: Checkout docker/login-action
+ run: |
+ rm -rf ./.github/actions/login-action
+ git clone https://github.com/docker/login-action
.github/actions/login-action
+
+ pushd .github/actions/login-action &>/dev/null
+ git checkout c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ popd &>/dev/null
+
+ - name: Checkout docker/build-push-action
+ run: |
+ rm -rf ./.github/actions/build-push-action
+ git clone https://github.com/docker/build-push-action
.github/actions/build-push-action
+
+ pushd .github/actions/build-push-action &>/dev/null
+ git checkout ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
+ popd &>/dev/null
+
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
+ uses: ./.github/actions/setup-buildx-action
- name: Login to Docker Hub
- uses: docker/login-action@v3
+ uses: ./.github/actions/login-action
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -347,7 +374,7 @@ jobs:
PYEOF
- name: Build and Push Docker Image (normal)
- uses: docker/build-push-action@v5
+ uses: ./.github/actions/build-push-action
with:
context: .
file: Dockerfile.patched
@@ -358,7 +385,7 @@ jobs:
platforms: linux/amd64
- name: Build and Push Docker Image (no-avx2)
- uses: docker/build-push-action@v5
+ uses: ./.github/actions/build-push-action
with:
context: .
file: Dockerfile.patched-noavx2
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000000..da3a2939077
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,9 @@
+[submodule ".github/actions/setup-buildx-action"]
+ path = .github/actions/setup-buildx-action
+ url = https://github.com/docker/setup-buildx-action
+[submodule ".github/actions/login-action"]
+ path = .github/actions/login-action
+ url = https://github.com/docker/login-action
+[submodule ".github/actions/build-push-action"]
+ path = .github/actions/build-push-action
+ url = https://github.com/docker/build-push-action
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]