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

OZ-438: Use shared GitHub workflows. #18

Merged
merged 4 commits into from
Mar 20, 2024
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
75 changes: 0 additions & 75 deletions .github/workflows/batch-image.yaml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]

jobs:
validate:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: 11
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

spotless:
needs: validate
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-spotless-check.yml@main
with:
java-version: 11
maven-args: -Pspotless

docker-ozone-flink-parquet-export:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
dockerfile: Dockerfile_parquet_export
image-name: "ozone-flink-parquet-export"
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

docker-ozone-flink-jobs-batch:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
dockerfile: Dockerfile_batch
image-name: "ozone-flink-jobs-batch"
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

docker-ozone-flink-jobs-streaming:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
image-name: "ozone-flink-jobs" # ozone-flink-jobs-streaming
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

docker-ozone-analytics-setup-connect:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/docker-build-publish.yml@main
with:
context: ./development/setup-connect
dockerfile: Dockerfile
image-name: "ozone-analytics-setup-connect"
secrets:
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
75 changes: 0 additions & 75 deletions .github/workflows/parquet-export-image.yaml

This file was deleted.

73 changes: 0 additions & 73 deletions .github/workflows/setup-connect-image.yaml

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/streaming-image.yaml

This file was deleted.

11 changes: 7 additions & 4 deletions Dockerfile_batch
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM maven:3.8.6-eclipse-temurin-11 as builder
# add pom.xml and source code
ADD ./pom.xml pom.xml
RUN mvn dependency:go-offline
ADD ./src src/

ENV MAVEN_OPTS="-Xmx2g"

# Copy pom.xml and source code
COPY ./pom.xml pom.xml
COPY ./src src/

RUN mvn clean install -Pbatch

FROM eclipse-temurin:11-jre
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,4 @@ The project includes spotless-maven-plugin to enforce code formatting. To format
```bash
mvn clean install -Pspotless
```