forked from debezium/debezium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DBZ-PGYB] Add plugin to package connector in a ZIP file (#157)
This PR changes the following: 1. Adds a plugin to the pom.xml file to package the connector according to Confluent specifications 2. Adds a GitHub pipeline to automate the above packaging process
- Loading branch information
1 parent
16ead43
commit 3ca8afd
Showing
3 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Create package for Confluent | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Version of the connector to be packaged" | ||
required: true | ||
type: string | ||
isSnapshotBuild: | ||
description: "Snapshot build?" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
build: | ||
name: "Create YugabyteDBConnector package for" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Action | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Java 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Set version for release | ||
run: ./mvnw versions:set -DnewVersion=${{ inputs.version }} | ||
|
||
- name: Compile jar file | ||
run: ./mvnw clean install -Dquick -pl debezium-connector-postgres -pl debezium-bom -pl support/ide-configs -am | ||
- name: Create GitHub release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ inputs.version }} | ||
release_name: Release ${{ inputs.version }} | ||
draft: true | ||
prerelease: ${{ inputs.isSnapshotBuild }} | ||
- name: Upload zip package GitHub release | ||
id: upload-zip-package | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./debezium-connector-postgres/target/components/packages/yugabyte-debezium-connector-yugabytedb-${{ inputs.version }}.zip | ||
asset_name: yugabyte-debezium-connector-yugabytedb-${{ inputs.version }}.zip | ||
asset_content_type: application/zip |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters