diff --git a/docs/releases.md b/docs/releases.md index 5175551d9..3779960e1 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -16,9 +16,37 @@ latest Docker image which is not a nightly is tagged with `latest`. ### Update dependencies -Dependencies should be updated in the following order: +Dependencies should be updated in the order described below. The instructions +assume that this repository and the other Conduit repositories are all cloned in +the same directory. + 1. https://github.com/ConduitIO/conduit-commons/ - * + * Run `scripts/get-compare-link.sh ../conduit-commons/` to compare the latest tag and the `main` branch. + * If the changes should be released/tagged, push a new tag. +2. https://github.com/conduitio/conduit-connector-protocol + * Update `conduit-commons` if needed + * Run `scripts/get-compare-link.sh ../conduit-connector-protocol/` to compare the latest tag and the `main` branch. + * If the changes should be released/tagged, push a new tag. +3. https://github.com/ConduitIO/conduit-connector-sdk + * Update `conduit-commons` if needed + * Update `conduit-connector-protocol` if needed + * Run `scripts/get-compare-link.sh ../conduit-connector-sdk/` to compare the latest tag and the `main` branch. + * If the changes should be released/tagged, push a new tag. +4. https://github.com/ConduitIO/conduit-processor-sdk + * Update `conduit-commons` if needed + * Run `scripts/get-compare-link.sh ../conduit-processor-sdk/` to compare the latest tag and the `main` branch. + * If the changes should be released/tagged, push a new tag. +5. Bump the Connector SDK in all the built-in connectors: `scripts/bump-sdk-in-connectors.sh vX.Y.Z` +6. For each of the built-in connectors (file, kafka, generator, s3, postgres, log): + * Run `scripts/get-compare-link.sh ../conduit-processor-sdk/` to compare the latest tag and the `main` branch. + * If the changes should be released/tagged, push a new tag. +7. Bump the built-in connectors: `scripts/bump-builtin-connectors.sh` +8. Conduit itself + * Update `conduit-connector-sdk` if needed + * Update `conduit-processor-sdk` if needed + * Update `conduit-connector-protocol` if needed + * Update `conduit-commons` if needed + * Release Conduit (see instructions below) ## How to release a new version diff --git a/scripts/bump-sdk-in-connectors.sh b/scripts/bump-sdk-in-connectors.sh index 108a4bb8a..0d55dd303 100755 --- a/scripts/bump-sdk-in-connectors.sh +++ b/scripts/bump-sdk-in-connectors.sh @@ -19,7 +19,7 @@ SDK_V=$1 for conn in 'file' 'kafka' 'generator' 's3' 'postgres' 'log' do - cd ../conduit-connector-$conn + cd ../conduit-connector-$conn || exit echo echo "Working on conduit-connector-$conn" @@ -36,5 +36,5 @@ do gh pr create --fill --head bump-sdk-version-$SDK_V - cd ../conduit + cd ../conduit || exit done diff --git a/scripts/get-compare-link.sh b/scripts/get-compare-link.sh index 3252b67f5..5fdaccccf 100755 --- a/scripts/get-compare-link.sh +++ b/scripts/get-compare-link.sh @@ -12,8 +12,8 @@ cd "$1" || { echo "Failed to move into repository directory"; exit 1; } # Fetch tags git fetch --tags || { echo "Failed to fetch tags"; exit 1; } -# Get the latest tag -latest_tag=$(git describe --tags --abbrev=0) || { echo "Failed to get latest tag"; exit 1; } +# Get the latest tag across all branches +latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)") || { echo "Failed to get latest tag"; exit 1; } # Get the owner and repository name from the remote URL repo_url=$(git config --get remote.origin.url)