Skip to content

Commit 7058b1b

Browse files
committed
Deploy jar to github packages
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
1 parent 5da8bde commit 7058b1b

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/uber-jar.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ jobs:
3434
- name: Set up Docker Buildx
3535
uses: docker/setup-buildx-action@v2
3636

37-
- name: Log in to Docker Hub
38-
uses: docker/login-action@v2
39-
with:
40-
username: datasqrl
41-
password: ${{ secrets.DOCKER_PASSWORD }}
42-
4337
- name: Pull base images
4438
run: |
4539
docker pull alpine:3
@@ -63,11 +57,16 @@ jobs:
6357
6458
- name: Run Maven Build
6559
run: |
66-
mvn -B clean install -P${{ matrix.FLINK_PROFILE }} -Dsqrl.version=${{ matrix.SQRL_VERSION }}
60+
mvn -B clean deploy -P${{ matrix.FLINK_PROFILE }} -Dsqrl.version=${{ matrix.SQRL_VERSION }}
61+
62+
- name: Log in to Docker Hub
63+
uses: docker/login-action@v2
64+
with:
65+
username: datasqrl
66+
password: ${{ secrets.DOCKER_PASSWORD }}
6767

6868
- name: Build Docker image
6969
run: |
7070
DOCKER_TAG=$DOCKER_REPO:${{ env.VERSION }}-sqrlv${{ matrix.SQRL_VERSION }}-${{ matrix.FLINK_PROFILE }}
71-
ls -lha
7271
docker build --build-arg SQRL_VERSION=${{ matrix.SQRL_VERSION }} --build-arg RUNNER_VERSION=${{ env.VERSION }} -t $DOCKER_TAG .
7372
docker push $DOCKER_TAG

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
<version>1.0.0-SNAPSHOT</version>
2525
<inceptionYear>2024</inceptionYear>
2626

27+
<distributionManagement>
28+
<snapshotRepository>
29+
<id>github</id>
30+
<url>https://maven.pkg.github.com/DataSQRL/acorn-java</url>
31+
</snapshotRepository>
32+
</distributionManagement>
33+
2734
<properties>
2835
<gcf.skipInstallHooks>true</gcf.skipInstallHooks>
2936

@@ -241,6 +248,8 @@
241248
<phase>package</phase>
242249
<configuration>
243250
<finalName>flink-jar-runner.uber</finalName>
251+
<shadedArtifactAttached>true</shadedArtifactAttached>
252+
<shadedClassifierName>sqrlv${sqrl.version}-flink${flink.version}</shadedClassifierName>
244253
<artifactSet>
245254
<excludes>
246255
<exclude>org.apache.flink:flink-shaded-force-shading</exclude>

0 commit comments

Comments
 (0)