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

Feature/fix cv es #111

Merged
merged 8 commits into from
Jan 18, 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
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI Build
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
build:
name: Maven Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
cache: 'maven'

- name: Run the Maven verify phase
run: mvn clean verify -DappId=${{ secrets.APP_ID }} -Dcluster=${{ secrets.CLUSTER }} -DappKey=${{ secrets.APP_SECRET }} -Dauthority=${{ secrets.TENANT_ID }} -Ddatabase=${{ secrets.DATABASE }} -Dingest=${{ secrets.INGEST }}
env:
appId: ${{ secrets.APP_ID }}
authority: ${{ secrets.TENANT_ID }}
appKey: ${{ secrets.APP_SECRET }}
database: ${{ secrets.DATABASE }}
cluster: ${{ secrets.CLUSTER }}
ingest: ${{ secrets.INGEST }}

- name: Publish Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1

49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release
on:
workflow_dispatch:
release:
types: [released]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Run the Maven package phase
run: mvn clean package -DappId=${{ secrets.APP_ID }} -Dcluster=${{ secrets.CLUSTER }} -DappKey=${{ secrets.APP_SECRET }} -Dauthority=${{ secrets.TENANT_ID }} -Ddatabase=${{ secrets.DATABASE }} -Dingest=${{ secrets.INGEST }}
env:
appId: ${{ secrets.APP_ID }}
authority: ${{ secrets.TENANT_ID }}
appKey: ${{ secrets.APP_SECRET }}
database: ${{ secrets.DATABASE }}
cluster: ${{ secrets.CLUSTER }}
ingest: ${{ secrets.INGEST }}

- name: Get versions
id: get_version
run: |
echo ::set-output name=VERSION::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
- name: Move artifacts to staging
run: |
version=${{ steps.get_version.outputs.VERSION }}
mkdir staging
cp target/*.jar staging
cp target/components/packages/microsoftcorporation-kafka-sink-azure-kusto-${{ steps.get_version.outputs.VERSION }}.zip staging
- name: Github Release
uses: anton-yurchenko/git-release@v5.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: |
staging/kafka-sink-azure-kusto-${{ steps.get_version.outputs.VERSION }}-jar-with-dependencies.jar
staging/microsoftcorporation-kafka-sink-azure-kusto-${{ steps.get_version.outputs.VERSION }}.zip
continue-on-error: true
Loading