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

adoroszlai pushed a commit to branch docker-hadoop-runner-jdk17-u2204
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to 
refs/heads/docker-hadoop-runner-jdk17-u2204 by this push:
     new 06d55536d3e HADOOP-19720. Publish multi-arch hadoop-runner image to 
GitHub (#8021)
06d55536d3e is described below

commit 06d55536d3ef779f0bf0e990492254336455aaa4
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Oct 9 04:06:54 2025 +0200

    HADOOP-19720. Publish multi-arch hadoop-runner image to GitHub (#8021)
    
    (cherry picked from commit b3ff28348c58c3b03c1195d86e797f9763c24e8c)
---
 .github/workflows/build-hadoop-runner-image.yaml | 70 ++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

diff --git a/.github/workflows/build-hadoop-runner-image.yaml 
b/.github/workflows/build-hadoop-runner-image.yaml
new file mode 100644
index 00000000000..f9b73404970
--- /dev/null
+++ b/.github/workflows/build-hadoop-runner-image.yaml
@@ -0,0 +1,70 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: build-hadoop-runner-image
+
+# This workflow builds the Docker image if it does not exists already.
+# For non-PR runs, it also publishes the image to the registry, tagging it 
based on the branch name:
+#    docker-hadoop-runner-X-Y => apache/hadoop-runner:X-Y
+
+on:
+  pull_request:
+    types: [opened, ready_for_review, synchronize]
+  push:
+    branches:
+      - 'docker-hadoop-runner-**'
+
+permissions:
+  contents: read
+  packages: write
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Generate image ID
+        id: meta
+        uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
+        with:
+          images: |
+            ghcr.io/${{ github.repository_owner }}/hadoop-runner
+          tags: |
+            
type=match,pattern=docker-hadoop-runner-(.*),value={{branch}},group=1
+          flavor: |
+            latest=false
+
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf
+
+      - name: Set up Docker Buildx
+        uses: 
docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349
+
+      - name: Login to GitHub Container Registry
+        id: login
+        if: ${{ github.event_name != 'pull_request' }}
+        uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
+        with:
+          registry: ghcr.io
+          username: ${{ github.repository_owner }}
+          password: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Build and push image to GitHub Container Registry
+        id: build
+        uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
+        with:
+          platforms: linux/amd64,linux/arm64
+          push: ${{ github.event_name != 'pull_request' }}
+          tags: ${{ steps.meta.outputs.tags }}
+          labels: ${{ steps.meta.outputs.labels }}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to