1
0
mirror of synced 2025-12-19 10:00:34 -05:00

fix(ci): update generate_dev_tag to use new prerelease format (#70987)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Aaron ("AJ") Steers
2025-12-18 10:28:03 -08:00
committed by GitHub
parent 000f96b8fb
commit b3c6fdf6aa
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
# --name <name>: Specifies the connector name (e.g., destination-bigquery). # --name <name>: Specifies the connector name (e.g., destination-bigquery).
# #
# --release-type: Specifies the release type: # --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. # - main-release: Builds with the exact version from metadata.yaml.
# Defaults to pre-release if not specified. # Defaults to pre-release if not specified.
# #

View File

@@ -54,13 +54,13 @@ get_only_connector() {
echo "${connectors[@]:0:1}" 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() { generate_dev_tag() {
local base="$1" 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 local hash
hash=$(git rev-parse --short=10 HEAD) hash=$(git rev-parse --short=7 HEAD)
echo "${base}-dev.${hash}" echo "${base}-preview.${hash}"
} }
# Authenticate to gcloud using the contents of a variable. # Authenticate to gcloud using the contents of a variable.