Skip to content
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

update jdk on workflows and bump setup jdk version #320

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
7 changes: 4 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ jobs:
#- run: |
# make bootstrap
# make release
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 11
distribution: 'jdkfile'
java-version: '17'

- name: Build with Gradle
run: ./gradlew build
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Java SDK
uses: actions/setup-java@v1.4.3
uses: actions/setup-java@v4.2.1
with:
java-version: 11
distribution: 'jdkfile'
java-version: '17'

- name: Checkout code
uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/master_push_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v4.2.1
with:
java-version: 11
distribution: 'jdkfile'
java-version: '17'
- name: Build with Gradle
run: ./gradlew build integrationTest
5 changes: 3 additions & 2 deletions .github/workflows/pull_request_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: 'jdkfile'
java-version: '17'
- name: Build with Gradle
run: ./gradlew build integrationTest
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ public final class SchemaRegistryContainer extends GenericContainer<SchemaRegist
public static final int SCHEMA_REGISTRY_PORT = 8081;

public SchemaRegistryContainer(final KafkaContainer kafka) {
this("5.0.4", kafka);
this("3.7.0", kafka);
}

public SchemaRegistryContainer(final String confluentPlatformVersion, final KafkaContainer kafka) {
super("confluentinc/cp-schema-registry:" + confluentPlatformVersion);
super("ghcr.io/aiven/karapace:" + confluentPlatformVersion);

dependsOn(kafka);
withNetwork(kafka.getNetwork());
withNetworkAliases("schema-registry-" + Base58.randomString(6));

withEnv("SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS",
withEnv("KARAPACE_BOOTSTRAP_URI",
String.format("PLAINTEXT://%s:%s", kafka.getNetworkAliases().get(0), 9092));

withExposedPorts(SCHEMA_REGISTRY_PORT);
withEnv("SCHEMA_REGISTRY_HOST_NAME", "localhost");
withEnv("SCHEMA_REGISTRY_HOST_NAME", "localhost"); // probably useless for karapace
}

public String getSchemaRegistryUrl() {
Expand Down
Loading