Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Nov 3, 2023
1 parent edb3f3a commit f611494
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/build-all-in-one-image.sh
Expand Up @@ -3,9 +3,9 @@
set -exu

if [[ "$1" == "pr-only" ]]; then
pull_request="1"
is_pull_request=true
else
pull_request=""
is_pull_request=false
fi

# alternative can be jaeger-v2
Expand Down Expand Up @@ -43,7 +43,7 @@ run_integration_test() {
docker kill "$CID"
}

if [ -n "$pull_request" ]; then
if [[ "${is_pull_request}" == "true" ]]; then
make create-baseimg
# build current architecture only for pull requests
platforms="linux/${GOARCH}"
Expand All @@ -70,7 +70,7 @@ fi
bash scripts/build-upload-a-docker-image.sh -b -c all-in-one -d cmd/all-in-one -p "${platforms}" -t release

# build debug image if not on a pull request
if [ -z "$pull_request" ]; then
if [[ "${is_pull_request}" == "false" ]]; then
make build-all-in-one GOOS=linux GOARCH="$GOARCH" DEBUG_BINARY=1
repo="${repo}-debug"

Expand Down

0 comments on commit f611494

Please sign in to comment.