Skip to content

Commit 0f61bf9

Browse files
committed
[SPARK-52003] Improve publish_snapshot_dockerhub GitHub Action job to support branches
1 parent fe5e410 commit 0f61bf9

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)