Skip to content

Commit 562b1d3

Browse files
committed
[SPARK-52003] Improve publish_snapshot_dockerhub GitHub Action job to support branches
### What changes were proposed in this pull request? This PR aims to improve `publish_snapshot_dockerhub` GitHub Action job to support branches. ### Why are the changes needed? Previously, the job supports only `main` branch. After this PR, `branch-0.1` is added to the matrix. However, this PR should land at only `main` branch because GitHub Action supports the schedule job only at `main` branch. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual review. This should be tested after merging. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#183 from dongjoon-hyun/SPARK-52003. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent fe5e410 commit 562b1d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish_snapshot_dockerhub.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
description: 'list of branches to publish (JSON)'
1111
required: true
1212
# keep in sync with default value of strategy matrix 'branch'
13-
default: '["main"]'
13+
default: '["main", "branch-0.1"]'
1414

1515
jobs:
1616
publish-snapshot-image:
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
# keep in sync with default value of workflow_dispatch input 'branch'
23-
branch: ${{ fromJSON( inputs.branch || '["main"]' ) }}
23+
branch: ${{ fromJSON( inputs.branch || '["main", "branch-0.1"]' ) }}
2424
steps:
2525
- name: Set up QEMU
2626
uses: docker/setup-qemu-action@v3
@@ -45,4 +45,4 @@ jobs:
4545
file: build-tools/docker/Dockerfile
4646
platforms: linux/amd64,linux/arm64
4747
push: true
48-
tags: apache/spark-kubernetes-operator:main-snapshot
48+
tags: apache/spark-kubernetes-operator:${{ matrix.branch }}-snapshot

0 commit comments

Comments
 (0)