-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.25 KB
/
build_and_publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: ci
on:
push:
branches:
- "main"
paths:
- ".github/workflows/build_and_publish.yml"
- "scripts/**"
- "spark_conf/**"
- "Dockerfile"
env:
NAMESPACE: ${{ secrets.DOCKERHUB_USERNAME }}
jobs:
docker:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
strategy:
matrix:
spark-version:
- {v: "3.1.3", arg: "v3.1.3"}
- {v: "3.2.4", arg: "v3.2.4"}
- {v: "3.3.3", arg: "3.3.3"}
- {v: "3.4.1", arg: "3.4.1"}
- {v: "3.5.0", arg: "3.5.0"}
- {v: "latest", arg: "latest"}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v5
env:
IMAGE_NAME: spark-delta-standalone
with:
push: true
tags: ${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ matrix.spark-version.v }}
build-args: SPARK_VERSION=${{ matrix.spark-version.arg }}