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

DAT-16972 SDKMAN Distribution #170

Merged
merged 37 commits into from
Mar 21, 2024
Merged

DAT-16972 SDKMAN Distribution #170

merged 37 commits into from
Mar 21, 2024

Conversation

jandroav
Copy link
Contributor

@jandroav jandroav commented Mar 1, 2024

I added the logic shown at https://sdkman.io/vendors

The send command has an URL input parameter where the package must be accessible, that is why I created an Artifactory public repo https://artifactory.datical.net/artifactory/sdkman to store them so its is uploaded to our package repo s3://repo.liquibase.com/sdkman. We will have download insights as well. An example of a POST request to send a new version to SDKMAN:

          curl -X POST \
          -H "Consumer-Key: ******" \
          -H "Consumer-Token: *******" \
          -H "Content-Type: application/json" \
          -H "Accept: application/json" \
          -d '{"candidate": "liquibase", "version": "4.26.0", "url": "https://s3.amazonaws.com/repo.liquibase.com/sdkman/liquibase-4.26.0.zip"}' \
          https://vendors.sdkman.io/release

Vendor logic tested from https://github.com/liquibase/liquibase-packaging/actions/runs/8263115718/job/22603842283

jandroav added 4 commits March 1, 2024 13:03
….artifactId }}

feat(package.yml): add step to update SDKMAN version for ${{ inputs.artifactId }} to the workflow
… output

chore(package.yml): add ls command to list files after unzipping for debugging purposes
…ic directory to avoid cluttering the root directory
…sion for

liquibase to ensure consistency and improve maintainability
@jandroav jandroav marked this pull request as draft March 1, 2024 12:14
@jandroav jandroav marked this pull request as ready for review March 13, 2024 06:57
jandroav and others added 16 commits March 13, 2024 07:58
…ials 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
…ile to

improve readability and reduce clutter in the workflow definition.
…ctory after zipping the Liquibase SDKman package before uploading to Artifactory
…AN_URL for

consistency
feat(package.yml): enhance workflow to send release information to SDKMAN for
better integration and version management
…or 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
…efault version and announcing release, as they are not required for the workflow and can be handled manually if needed.
…ter 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
…process to provide better visibility and feedback
feat: update build-logic version to v0.6.6 for consistency and compatibility
jandroav added 5 commits March 13, 2024 10:44
… tasks

fix(package.yml): move liquibase.bat to bin directory for Windows compatibility
…N and ARTIFACTORY_URL variables for liquibase release on SDKMAN
…w Liquibase release and provide the download URL for the version
… steps for

better readability and maintainability
@jandroav
Copy link
Contributor Author

I am changing artifactory to s3

jandroav and others added 10 commits March 13, 2024 14:39
…ad of Artifactory

feat(package.yml): update SDKMAN release URL to point to S3 bucket for liquibase artifacts
…o improve

readability and reduce clutter in the workflow file.
…rrect indentation for better readability and consistency
…ation step for better readability and consistency
…ment steps to simplify the workflow and reduce complexity
…rectory to avoid including unnecessary files in the zip archive
…on and set default version

feat(package.yml): announce release to SDKMAN for visibility and promotion purposes
…he 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
@jandroav jandroav merged commit cf4a74a into main Mar 21, 2024
@jandroav jandroav deleted the DAT-16972 branch March 21, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants