Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4163 | Speed-up CI by using published UI artifacts #4251

Merged
merged 6 commits into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ jaeger-ui/packages/jaeger-ui/build/index.html:

.PHONY: rebuild-ui
rebuild-ui:
cd jaeger-ui && yarn install --frozen-lockfile && cd packages/jaeger-ui && yarn build

bash ./scripts/rebuild-ui.sh
.PHONY: build-all-in-one-linux
build-all-in-one-linux:
GOOS=linux $(MAKE) build-all-in-one
Expand Down
24 changes: 24 additions & 0 deletions scripts/rebuild-ui.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

yurishkuro marked this conversation as resolved.
Show resolved Hide resolved
set -euxf -o pipefail

cd jaeger-ui

tag=$(git describe --exact-match --tags)
if [[ "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
temp_file=$(mktemp)
trap "rm -f ${temp_file}" EXIT
release_url="https://github.com/jaegertracing/jaeger-ui/releases/download/${tag}/assets.tar.gz"
curl --location --output "$temp_file" "$release_url"
mkdir -p packages/jaeger-ui/build/
tar -zxvf "$temp_file" packages/jaeger-ui/build/
exit 0
yurishkuro marked this conversation as resolved.
Show resolved Hide resolved
fi

# do a regular full build
yarn install --frozen-lockfile && cd packages/jaeger-ui && yarn build