diff --git a/poe-tasks/build-and-publish-java-connectors-with-tag.sh b/poe-tasks/build-and-publish-java-connectors-with-tag.sh index 9e2e45a5238..3fd67ec7fb4 100755 --- a/poe-tasks/build-and-publish-java-connectors-with-tag.sh +++ b/poe-tasks/build-and-publish-java-connectors-with-tag.sh @@ -7,7 +7,7 @@ # --name : Specifies the connector name (e.g., destination-bigquery). # # --release-type: Specifies the release type: -# - pre-release: Builds with a dev tag (version-dev.githash). +# - pre-release: Builds with a preview tag (version-preview.githash). # - main-release: Builds with the exact version from metadata.yaml. # Defaults to pre-release if not specified. # diff --git a/poe-tasks/lib/util.sh b/poe-tasks/lib/util.sh index bda336828d7..a2a6d253ae8 100644 --- a/poe-tasks/lib/util.sh +++ b/poe-tasks/lib/util.sh @@ -54,13 +54,13 @@ get_only_connector() { echo "${connectors[@]:0:1}" } -# Generate the prerelease image tag (e.g. `1.2.3-dev.abcde12345`). +# Generate the prerelease image tag (e.g. `1.2.3-preview.abcde12`). generate_dev_tag() { local base="$1" - # force a 10-char short hash to match existing airbyte-ci behaviour. + # Use 7-char short hash to match the new prerelease format. local hash - hash=$(git rev-parse --short=10 HEAD) - echo "${base}-dev.${hash}" + hash=$(git rev-parse --short=7 HEAD) + echo "${base}-preview.${hash}" } # Authenticate to gcloud using the contents of a variable.