Skip to content

Commit

Permalink
[Buildkite] Avoid deploying backport and prerelease tags (#7036)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Aug 4, 2023
1 parent 304f35c commit 5ab7824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/deploy/deploy_docs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ publish_to_bucket()
if [[ "$1" != "nodocker" ]]; then
./scripts/deploy/build_docs

# we look this up to inject into the next docker run so it can decide whether
# we need to overwrite the root /index.html file with a new one.
CURRENT_RELEASE=$(git describe --tags "$(git rev-list --tags --max-count=1)")
# Get the latest tag on main, which will determine whether we deploy to the root `eui.elastic.co` bucket
# NOTE: specifying the main branch means we don't override prod with backport or prerelease tags.
CURRENT_RELEASE=$(git describe --tags "$(git rev-list --branches=main --tags --max-count=1)")
echo "Current release: $CURRENT_RELEASE"

# Run this script from inside the docker container, using google/cloud-sdk image
Expand Down

0 comments on commit 5ab7824

Please sign in to comment.