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

Refactor: build linux artifacts only for PR #4286

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions .github/workflows/ci-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ jobs:

- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18

- name: Build only linux/amd64 docker image for Pull Request
if: github.ref_name != 'main'
run: bash scripts/build-upload-docker-images.sh pr-only

- name: Build and upload all docker images
if: github.ref_name == 'main'
run: bash scripts/build-upload-docker-images.sh
env:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
18 changes: 12 additions & 6 deletions scripts/build-upload-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@

set -euxf -o pipefail

mode=${1-main}
Eileen-Yu marked this conversation as resolved.
Show resolved Hide resolved

make create-baseimg-debugimg

# build multi-arch binaries
make build-binaries-linux
make build-binaries-s390x
make build-binaries-ppc64le
make build-binaries-arm64

# build multi-arch docker images
platforms="linux/amd64,linux/s390x,linux/ppc64le,linux/arm64"
if [ "$mode" = "pr-only" ]; then
# build artifacts for linux/amd64 only for pull requests
platforms="linux/amd64"
else
platforms="linux/amd64,linux/s390x,linux/ppc64le,linux/arm64"
# build multi-arch binaries
make build-binaries-s390x
make build-binaries-ppc64le
make build-binaries-arm64
fi

# build/upload raw and debug images of Jaeger backend components
for component in agent collector query ingester remote-storage
Expand Down