Skip to content

Commit 9e8f9f6

Browse files
jesuschFMX
authored andcommitted
[CELEBORN-1900] docker images
### What changes were proposed in this pull request? build & publish docker images on release ### Why are the changes needed? No offical images available ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? I wish I could - but I cannot push against a non existing docker repo :) Closes #3152 from jesusch/CELEBORN-1900-docker-images. Authored-by: Björn Boschman <[email protected]> Signed-off-by: mingji <[email protected]>
1 parent 7174275 commit 9e8f9f6

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/docker-build.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Push Celeborn Docker Images
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
celeborn_version:
9+
description: 'Celeborn version (e.g., 0.3.0)'
10+
required: false # Making it optional for release triggers
11+
type: string
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Set Celeborn Version
19+
id: set_version
20+
run: |
21+
if [[ "${{ github.event_name }}" == "release" ]]; then
22+
VERSION="${{ github.event.release.tag_name }}"
23+
echo "VERSION=${VERSION#v}" >> $GITHUB_OUTPUT
24+
else
25+
VERSION="${{ github.event.inputs.celeborn_version }}"
26+
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
27+
fi
28+
29+
- name: Download Celeborn Release
30+
run: |
31+
VERSION="${{ steps.extract_version.outputs.VERSION }}"
32+
wget https://downloads.apache.org/celeborn/celeborn-${VERSION}/apache-celeborn-${VERSION}-bin.tgz
33+
tar -xzf apache-celeborn-${VERSION}-bin.tgz
34+
35+
- name: Build and Push
36+
run: |
37+
VERSION="${{ steps.extract_version.outputs.VERSION }}"
38+
cd apache-celeborn-${VERSION}-bin
39+
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
40+
docker buildx create --use
41+
docker buildx build -f docker/Dockerfile --platform=linux/amd64,linux/arm64 -t apache/celeborn:${VERSION} .

0 commit comments

Comments
 (0)