File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 50
50
working-directory : flink-dockerfile-example
51
51
run : |
52
52
DOCKER_TAG=$DOCKER_REPO:${{ env.VERSION }}-sqrl${{ matrix.SQRL_VERSION }}
53
- docker build --build-arg SQRL_VERSION=${{ matrix.SQRL_VERSION }} -t $DOCKER_TAG .
53
+ docker build --build-arg SQRL_VERSION=${{ matrix.SQRL_VERSION }} --build-arg GITHUB_ACTOR=${{ github.actor }} --build-arg GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} - t $DOCKER_TAG .
54
54
55
55
- name : Push Docker image
56
56
if : github.event_name == 'release' && github.event.action == 'created'
Original file line number Diff line number Diff line change 17
17
FROM gradle:8.6-jdk11 AS build
18
18
19
19
ARG SQRL_VERSION="v0.5.7"
20
+ ARG GITHUB_ACTOR
21
+ ARG GITHUB_TOKEN
22
+
23
+ ENV GITHUB_ACTOR=${GITHUB_ACTOR}
24
+ ENV GITHUB_TOKEN=${GITHUB_TOKEN}
20
25
21
26
WORKDIR /app
22
27
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 = System . getenv(' SQRL_VERSION' )?. replaceFirst(' ^v' , ' ' )
31
30
icebergVersion = " 1.6.0"
31
+ sqrlVersion = System . getenv(' SQRL_VERSION' )?. replaceFirst(' ^v' , ' ' ) ?: ' dev'
32
+ }
33
+
34
+ // Logic to fetch the latest snapshot version if sqrlVersion is 'dev'
35
+ if (sqrlVersion == ' dev' ) {
36
+ sqrlVersion = ' 0.5.10-SNAPSHOT'
32
37
}
33
38
34
39
repositories {
@@ -37,6 +42,13 @@ repositories {
37
42
maven {
38
43
url " https://packages.confluent.io/maven/"
39
44
}
45
+ maven {
46
+ url " https://maven.pkg.github.com/DataSQRL/sqrl"
47
+ credentials {
48
+ username = System . getenv(" GITHUB_ACTOR" )
49
+ password = System . getenv(" GITHUB_TOKEN" )
50
+ }
51
+ }
40
52
}
41
53
42
54
dependencies {
You can’t perform that action at this time.
0 commit comments