Skip to content

Commit

Permalink
DAT-16972 SDKMAN Distribution (#170)
Browse files Browse the repository at this point in the history
* chore(package.yml): update workflow to upload packages for ${{ inputs.artifactId }}
feat(package.yml): add step to update SDKMAN version for ${{ inputs.artifactId }} to the workflow

* chore(package.yml): update wget command to use quiet mode for cleaner output
chore(package.yml): add ls command to list files after unzipping for debugging purposes

* fix(package.yml): update unzip command to extract files into a specific directory to avoid cluttering the root directory

* chore(package.yml): clean up commented out code and update SDKMAN version for
liquibase to ensure consistency and improve maintainability

* chore(package.yml): add environment variables for Artifactory credentials and URL
feat(package.yml): upload release to Artifactory and send release information to SDKMAN for distribution
feat(package.yml): set default version for SDKMAN and announce release to SDKMAN

* chore(package.yml): update Artifactory upload URL to include specific path for SDKMAN integration

* chore(package.yml): comment out unused steps in the GitHub workflow file to
improve readability and reduce clutter in the workflow definition.

* chore(package.yml): add cd .. command to move back to the parent directory after zipping the Liquibase SDKman package before uploading to Artifactory

* fix(package.yml): add verbose flag to curl command for better debugging and visibility

* fix(package.yml): update Artifactory URL to use HTTPS protocol for secure communication

* chore(package.yml): update ARTIFACTORY_URL secret to ARTIFACTORY_SDKMAN_URL for
consistency
feat(package.yml): enhance workflow to send release information to SDKMAN for
better integration and version management

* chore(package.yml): simplify curl commands by removing unnecessary headers and endpoints

* chore(package.yml): add steps to send release information to SDKMAN for better integration and distribution
feat(package.yml): set default version for SDKMAN after uploading release to Artifactory to ensure users get the latest version
feat(package.yml): announce the release to SDKMAN users for visibility and awareness of the new version

* chore(package.yml): remove unnecessary SDKMAN API calls for setting default version and announcing release, as they are not required for the workflow and can be handled manually if needed.

* chore(package.yml): refactor workflow to use VERSION variable for better readability
feat(package.yml): add support for SDKMAN integration with Consumer Key and Token
feat(package.yml): update release and default version handling for SDKMAN integration

* chore(package.yml): remove verbose flag from curl command to reduce unnecessary output during release process

* chore(package.yml): add echo statements for each step in the release process to provide better visibility and feedback

* chore(package.yml): add silent flag (-s) to curl commands for quiet mode

* chore: update dependencies to latest versions in GitHub workflows
feat: update build-logic version to v0.6.6 for consistency and compatibility

* chore(package.yml): comment out unused setup steps and package upload tasks
fix(package.yml): move liquibase.bat to bin directory for Windows compatibility

* chore(package.yml): remove announcement of liquibase release to SDKMAN as it is no longer needed

* fix(package.yml): update JSON payload to correctly interpolate VERSION and ARTIFACTORY_URL variables for liquibase release on SDKMAN

* fix(package.yml): fix the URL concatenation to include the correct format for the artifact URL

* fix(package.yml): add announcement step to notify SDKMAN about the new Liquibase release and provide the download URL for the version

* chore(package.yml): clean up commented out code and reformat workflow steps for
better readability and maintainability

* chore(package.yml): update release upload process to use AWS S3 instead of Artifactory
feat(package.yml): update SDKMAN release URL to point to S3 bucket for liquibase artifacts

* chore(package.yml): update S3_WEB_URL to S3_BUCKET for consistency and clarity

* chore(package.yml): comment out unused steps in the GitHub workflow to improve
readability and reduce clutter in the workflow file.

* refactor(package.yml): update AWS credentials configuration to use correct indentation for better readability and consistency

* refactor(package.yml): align indentation for AWS credentials configuration step for better readability and consistency

* refactor(package.yml): remove unnecessary SDKMAN release and announcement steps to simplify the workflow and reduce complexity

* fix(package.yml): update zip command to only include the liquibase directory to avoid including unnecessary files in the zip archive

* feat(package.yml): add steps to send release to SDKMAN for distribution and set default version
feat(package.yml): announce release to SDKMAN for visibility and promotion purposes

* chore(package.yml): clean up commented out code and unused steps in the GitHub
workflow file
feat(package.yml): update setup steps for Java, Maven, Ruby, and importing GPG
key
feat(package.yml): add steps to download release, build deb package, install
deb-s3 gem, upload deb package, convert deb to rpm, upload rpm package, update
Homebrew formula, and update SDKMAN version

---------

Co-authored-by: Jake Newton <[email protected]>
  • Loading branch information
jandroav and jnewton03 authored Mar 21, 2024
1 parent c2ab01f commit cf4a74a
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 131 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
sonar:
uses: liquibase/build-logic/.github/workflows/[email protected].5
uses: liquibase/build-logic/.github/workflows/[email protected].6
secrets: inherit
with:
extraCommand: ${{ inputs.extraCommand }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/extension-attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ jobs:
- name: Get Reusable Script Files
run: |
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.5/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.5/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.5/.github/upload_asset.sh
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.6/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.6/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.6/.github/upload_asset.sh
chmod +x $PWD/.github/get_draft_release.sh
chmod +x $PWD/.github/sign_artifact.sh
chmod +x $PWD/.github/upload_asset.sh
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
- name: Get upload_zip.sh Script File
if: inputs.zip == 'true'
run: |
curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.5/.github/upload_zip.sh
curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.6/.github/upload_zip.sh
chmod +x $PWD/.github/upload_zip.sh
- name: Attach Zip File to Draft Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/extension-release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
release-rollback:
needs: prepare-release
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: liquibase/build-logic/.github/workflows/[email protected].5
uses: liquibase/build-logic/.github/workflows/[email protected].6
secrets: inherit
with:
extraCommand: ${{ inputs.extraCommand }}
2 changes: 1 addition & 1 deletion .github/workflows/extension-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:

jobs:
maven-release:
uses: liquibase/build-logic/.github/workflows/[email protected].5
uses: liquibase/build-logic/.github/workflows/[email protected].6
secrets: inherit
with:
extraCommand: ${{ inputs.extraCommand }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/os-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ jobs:
sonar-pr:
if: ${{ !inputs.nightly }}
needs: [unit-test]
uses: liquibase/build-logic/.github/workflows/[email protected].5
uses: liquibase/build-logic/.github/workflows/[email protected].6
secrets: inherit
with:
extraCommand: ${{ inputs.extraCommand }}
284 changes: 164 additions & 120 deletions .github/workflows/package.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/pom-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ jobs:
maven-release:
needs: release
uses: liquibase/build-logic/.github/workflows/[email protected].5
uses: liquibase/build-logic/.github/workflows/[email protected].6
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ jobs:
sonar-pr:
if: ${{ !inputs.nightly }}
needs: [unit-test]
uses: liquibase/build-logic/.github/workflows/[email protected].5
uses: liquibase/build-logic/.github/workflows/[email protected].6
secrets: inherit
with:
extraCommand: ${{ inputs.extraCommand }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,4 +451,4 @@ Here the modules we want to generate and aggregate test reports must be specifie

### Releasing a new version of build-logic

When you want to release new version of `build-logic`, it is important to update all the occurrences of previous version eg: `v0.6.3` with the new version eg : `v0.6.5` in all the files. As, the code for the new version internally refers to the old version.
When you want to release new version of `build-logic`, it is important to update all the occurrences of previous version eg: `v0.6.3` with the new version eg : `v0.6.6` in all the files. As, the code for the new version internally refers to the old version.

0 comments on commit cf4a74a

Please sign in to comment.