Skip to content

Make possible to use dev version of sqrl on flink-runner #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
SQRL_VERSION: [0.5.6, 0.5.7, 0.5.8, 0.5.9]
SQRL_VERSION: [v0.5.6, v0.5.7, v0.5.8, v0.5.9, dev]

env:
DOCKER_REPO: datasqrl/flink-jar-runner
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
working-directory: flink-dockerfile-example
run: |
DOCKER_TAG=$DOCKER_REPO:${{ env.VERSION }}-sqrl${{ matrix.SQRL_VERSION }}
docker build --build-arg SQRL_VERSION=${{ matrix.SQRL_VERSION }} -t $DOCKER_TAG .
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 .

- name: Push Docker image
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down
7 changes: 6 additions & 1 deletion flink-dockerfile-example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

FROM gradle:8.6-jdk11 AS build

ARG SQRL_VERSION="0.5.7"
ARG SQRL_VERSION="v0.5.7"
ARG GITHUB_ACTOR
ARG GITHUB_TOKEN

ENV GITHUB_ACTOR=${GITHUB_ACTOR}
ENV GITHUB_TOKEN=${GITHUB_TOKEN}

WORKDIR /app

Expand Down
14 changes: 13 additions & 1 deletion flink-dockerfile-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ ext {
flinkVersion = "1.19.1"
jdbcVersion = "3.2.0-1.19"
kafkaVersion = "3.2.0-1.19"
sqrlVersion = System.getenv('SQRL_VERSION')
icebergVersion = "1.6.0"
sqrlVersion = System.getenv('SQRL_VERSION')?.replaceFirst('^v', '') ?: 'dev'
}

// Logic to fetch the latest snapshot version if sqrlVersion is 'dev'
if (sqrlVersion == 'dev') {
sqrlVersion = '0.5.10-SNAPSHOT'
}

repositories {
Expand All @@ -37,6 +42,13 @@ repositories {
maven {
url "https://packages.confluent.io/maven/"
}
maven {
url "https://maven.pkg.github.com/DataSQRL/sqrl"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}

dependencies {
Expand Down
Loading