File tree 4 files changed +50
-2
lines changed 4 files changed +50
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Docker Image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build-and-publish :
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ SQRL_VERSION : [0.5.6, 0.5.7]
17
+
18
+ env :
19
+ DOCKER_REPO : datasqrl/flink-jar-runner
20
+
21
+ steps :
22
+ - name : Checkout code
23
+ uses : actions/checkout@v2
24
+
25
+ - name : Set up Docker Buildx
26
+ uses : docker/setup-buildx-action@v2
27
+
28
+ - name : Pull base images
29
+ run : |
30
+ docker pull gradle:8.6-jdk11
31
+ docker pull flink:1.19.1-scala_2.12-java11
32
+
33
+ - name : Log in to Docker Hub
34
+ uses : docker/login-action@v2
35
+ with :
36
+ username : ${{ secrets.DOCKER_USERNAME }}
37
+ password : ${{ secrets.DOCKER_PASSWORD }}
38
+
39
+ - name : Build and push Docker image
40
+ working-directory : flink-dockerfile-example
41
+ run : |
42
+ docker build --build-arg SQRL_VERSION=${{ matrix.SQRL_VERSION }} -t $DOCKER_REPO:${{ matrix.SQRL_VERSION }} .
43
+ docker push $DOCKER_REPO:${{ matrix.SQRL_VERSION }}
Original file line number Diff line number Diff line change 16
16
17
17
FROM gradle:8.6-jdk11 AS build
18
18
19
+ ARG SQRL_VERSION="0.5.7"
20
+
19
21
WORKDIR /app
20
22
21
23
COPY build.gradle /app/build.gradle
22
24
25
+ ENV SQRL_VERSION=${SQRL_VERSION}
26
+
23
27
RUN gradle --no-daemon --console=plain copyDependencies
24
28
29
+ RUN ls -lha /app/build/dependencies
30
+
25
31
FROM flink:1.19.1-scala_2.12-java11
26
32
27
33
RUN mkdir -p /opt/flink/plugins/flink-s3-fs-hadoop
28
34
RUN ln -fs /opt/flink/opt/flink-s3-fs-hadoop-*.jar /opt/flink/plugins/flink-s3-fs-hadoop/.
29
35
30
36
COPY --from=build /app/build/dependencies /opt/flink/lib
31
-
File renamed without changes.
Original file line number Diff line number Diff line change 27
27
flinkVersion = " 1.19.1"
28
28
jdbcVersion = " 3.2.0-1.19"
29
29
kafkaVersion = " 3.2.0-1.19"
30
- sqrlVersion = " 0.5.7 "
30
+ sqrlVersion = System . getenv( ' SQRL_VERSION ' )
31
31
icebergVersion = " 1.6.0"
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments