You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2026/07/10 23:04:05 UTC

(orc) branch main updated: ORC-2206: Add `publish_image.yml` GitHub Action job to publish docker images

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

dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/main by this push:
     new d1f9ffde4 ORC-2206: Add `publish_image.yml` GitHub Action job to publish docker images
d1f9ffde4 is described below

commit d1f9ffde46120bad06541f7fd980d5646d1f6cf9
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Fri Jul 10 16:03:58 2026 -0700

    ORC-2206: Add `publish_image.yml` GitHub Action job to publish docker images
    
    ### What changes were proposed in this pull request?
    
    This PR aims to add a new GitHub Actions workflow, `publish_image.yml`, to publish the docker test images under the `docker` directory to Docker Hub as `apache/orc-dev:<os>`.
    
    - The workflow is triggered manually via `workflow_dispatch` with a JSON list input of OSes to publish. By default, all seven OSes are published: `amazonlinux23`, `debian13`, `oraclelinux10`, `oraclelinux9`, `ubi10`, `ubuntu24`, `ubuntu26`.
    - Multi-architecture images (`linux/amd64`, `linux/arm64`) are built via QEMU and Docker Buildx with GitHub Actions cache.
    - The workflow checks out the `main` branch and runs only on the `apache/orc` repository.
    
    ### Why are the changes needed?
    
    Apache ORC community provides pre-built docker images at https://hub.docker.com/r/apache/orc-dev/tags and uses them during testing. This workflow allows us to publish the images via GitHub Actions instead of building and pushing them manually.
    
    ### How was this patch tested?
    
    Manual review because this is a `workflow_dispatch`-triggered workflow which runs only on the `apache/orc` repository.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Fable 5
    
    Closes #2689 from dongjoon-hyun/ORC-2206.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 .github/workflows/publish_image.yml | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/.github/workflows/publish_image.yml b/.github/workflows/publish_image.yml
new file mode 100644
index 000000000..920673ef8
--- /dev/null
+++ b/.github/workflows/publish_image.yml
@@ -0,0 +1,43 @@
+name: Publish Image
+
+on:
+  workflow_dispatch:
+    inputs:
+      os:
+        description: 'list of OSes to publish (JSON)'
+        required: true
+        default: '["amazonlinux23", "debian13", "oraclelinux10", "oraclelinux9", "ubi10", "ubuntu24", "ubuntu26"]'
+
+jobs:
+  publish-image:
+    if: github.repository == 'apache/orc'
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      max-parallel: 20
+      matrix:
+        os: ${{ fromJSON( inputs.os || '["amazonlinux23", "debian13", "oraclelinux10", "oraclelinux9", "ubi10", "ubuntu24", "ubuntu26"]' ) }}
+    steps:
+    - name: Set up QEMU
+      uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a
+    - name: Set up Docker Buildx
+      uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd
+    - name: Login to Docker Hub
+      uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121
+      with:
+        username: ${{ secrets.DOCKERHUB_USER }}
+        password: ${{ secrets.DOCKERHUB_TOKEN }}
+    - name: Checkout repository
+      uses: actions/checkout@v6
+      with:
+        ref: main
+    - name: Build and push
+      uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f
+      with:
+        cache-from: type=gha
+        cache-to: type=gha,mode=max
+        context: docker/${{ matrix.os }}
+        file: docker/${{ matrix.os }}/Dockerfile
+        platforms: linux/amd64,linux/arm64
+        push: true
+        tags: apache/orc-dev:${{ matrix.os }}