Skip to content

Commit e36d2a1

Browse files
1 parent bdc046e commit e36d2a1

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ blobs:
9090
- provider: s3
9191
bucket: tiger-cli-releases
9292
region: us-east-1
93-
directory: "install"
93+
directory: ""
9494
extra_files_only: true
9595
disable: '{{ ne .Prerelease "" }}' # Skip this step for prereleases
9696
extra_files:
@@ -115,7 +115,7 @@ homebrew_casks:
115115
license: Apache-2.0
116116
skip_upload: auto # Skips prerelease builds
117117
url:
118-
template: "https://tiger-cli-releases.s3.us-east-1.amazonaws.com/releases/{{ .Tag }}/{{ .ArtifactName }}"
118+
template: "https://cli.tigerdata.com/releases/{{ .Tag }}/{{ .ArtifactName }}"
119119
hooks:
120120
# TODO: Sign and notarize instead of removing quarantine bit
121121
# See: https://goreleaser.com/customization/homebrew_casks/#signing-and-notarizing

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ VERSION=1.2.3 && git tag -a v${VERSION} -m "${VERSION}" && git push origin v${VE
797797
**Publishing Targets:**
798798
1. **GitHub Releases** - Creates release with binaries for multiple platforms (macOS, Linux, Windows)
799799
2. **Homebrew Tap** - Updates `timescale/homebrew-tap` with new formula
800-
3. **S3 Bucket** - Uploads binaries to `tiger-cli-releases.s3.amazonaws.com` for install script
800+
3. **S3 Bucket** - Uploads binaries to `tiger-cli-releases` S3 bucket (behind `https://cli.tigerdata.com` CloudFront CDN) for install script and Homebrew downloads
801801
4. **PackageCloud** - Publishes Debian (.deb) and RPM packages to `timescale/tiger-cli` repository
802802

803803
**Build Tool:** Uses [GoReleaser](https://goreleaser.com) to build and publish across all platforms. Configuration is in `.goreleaser.yml`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Tiger CLI is the command-line interface for Tiger Cloud. It provides commands fo
77
### Install Script
88

99
```bash
10-
curl -fsSL https://tiger-cli-releases.s3.amazonaws.com/install/install.sh | sh
10+
curl -fsSL https://cli.tigerdata.com/install.sh | sh
1111
```
1212

1313
### Homebrew (macOS/Linux)

scripts/install.sh

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#
55
# Tiger CLI Installation Script
66
#
7-
# This script automatically downloads and installs the latest version of Tiger CLI
8-
# from S3 releases. It detects your platform (OS and architecture) and downloads
9-
# the appropriate binary for your system.
7+
# This script automatically downloads and installs the latest version of Tiger
8+
# CLI from the release server. It detects your platform (OS and architecture)
9+
# and downloads the appropriate binary for your system.
1010
#
1111
# Usage:
12-
# curl -fsSL https://tiger-cli-releases.s3.amazonaws.com/install/install.sh | sh
12+
# curl -fsSL https://cli.tigerdata.com/install.sh | sh
1313
#
1414
# Environment Variables (all optional):
1515
# VERSION - Specific version to install (e.g., "v1.2.3")
@@ -34,9 +34,8 @@ set -eu
3434
REPO_NAME="tiger-cli"
3535
BINARY_NAME="tiger"
3636

37-
# S3 Configuration (primary download source)
38-
S3_BUCKET="tiger-cli-releases"
39-
S3_BASE_URL="https://${S3_BUCKET}.s3.amazonaws.com"
37+
# Download URL
38+
DOWNLOAD_BASE_URL="https://cli.tigerdata.com"
4039

4140
# Colors for output
4241
RED='\033[0;31m'
@@ -175,7 +174,7 @@ download_with_retry() {
175174
done
176175
}
177176

178-
# Get version (from VERSION env var or latest from S3)
177+
# Get version (from VERSION env var or latest from CloudFront)
179178
get_version() {
180179
# Use VERSION env var if provided
181180
if [ -n "${VERSION:-}" ]; then
@@ -184,9 +183,9 @@ get_version() {
184183
return
185184
fi
186185

187-
local url="${S3_BASE_URL}/install/latest.txt"
186+
local url="${DOWNLOAD_BASE_URL}/latest.txt"
188187

189-
# Try to get version from S3 latest.txt file at bucket root
188+
# Try to get version from latest.txt file
190189
local version
191190
version=$(fetch_with_retry "${url}" "latest version")
192191

@@ -286,7 +285,7 @@ verify_checksum() {
286285
local tmp_dir="$3"
287286

288287
# Construct individual checksum file URL
289-
local checksum_url="${S3_BASE_URL}/releases/${version}/${filename}.sha256"
288+
local checksum_url="${DOWNLOAD_BASE_URL}/releases/${version}/${filename}.sha256"
290289
local checksum_file="${tmp_dir}/${filename}.sha256"
291290

292291
# Download checksum file with retry logic
@@ -327,8 +326,8 @@ download_archive() {
327326
local tmp_dir="$3"
328327
local platform="$4"
329328

330-
# Construct S3 download URL
331-
local download_url="${S3_BASE_URL}/releases/${version}/${archive_name}"
329+
# Construct download URL
330+
local download_url="${DOWNLOAD_BASE_URL}/releases/${version}/${archive_name}"
332331

333332
# Download archive with retry logic
334333
download_with_retry "${download_url}" "${tmp_dir}/${archive_name}" "Tiger CLI ${version} for ${platform}"

0 commit comments

Comments
 (0)