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:
committed by
GitHub
parent
000f96b8fb
commit
b3c6fdf6aa
@@ -7,7 +7,7 @@
|
||||
# --name <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.
|
||||
#
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user