Skip to content

Commit 0117741

Browse files
maven artifacts publication + little fixes
1 parent 7708f4b commit 0117741

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish images
1+
name: Publish
22
on:
33
# workflow_dispatch: # todo: requires to be merged to default branch to work
44
push:
@@ -13,6 +13,8 @@ jobs:
1313
java-version: 11
1414
cache: sbt
1515
- uses: sbt/setup-sbt@v1
16+
- name: Build and publish maven artifacts
17+
run: sbt "+clean; +publish"
1618
- name: Setup buildx builder
1719
uses: docker/setup-buildx-action@v3
1820
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG FLINK_VERSION
1+
ARG FLINK_VERSION="invalid"
22

33
FROM flink:${FLINK_VERSION}-scala_2.12-java17
44

build-images.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
set -e
3-
sbt -Dsbt.supershell=false "show version"
4-
sbt -Dsbt.supershell=false "show version" | grep "info" | tail -1
5-
sbt -Dsbt.supershell=false "show version" | grep "info" | tail -1 | awk '{print $2}'
3+
64
VERSION=$(sbt --no-colors -Dsbt.supershell=false "show version" | grep "info" | tail -1 | awk '{print $2}')
75
FLINK_VERSION=$(sbt --no-colors -Dsbt.supershell=false "show flinkV" | grep "info" | tail -1 | awk '{print $2}')
86
echo "FLINK_SCALA_VERSION: ${VERSION}"
@@ -14,7 +12,7 @@ else
1412
OUTPUT_TYPE="docker"
1513
fi
1614

17-
sbt "++clean;++assembly"
15+
sbt "+clean; +assembly"
1816

1917
IMAGE_TAG="${VERSION}-flink${FLINK_VERSION}-scala_2.12"
2018
echo "Building Docker image with version: $IMAGE_TAG"

0 commit comments

Comments
 (0)