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

CI: pull built docker image for ITs #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
21 changes: 13 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,26 @@ jobs:
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Checkout BlazingMQ
run: git clone https://github.com/bloomberg/blazingmq

# Pull docker image instead
- name: Build base BlazingMQ docker image
working-directory: blazingmq
run: docker compose -f docker/single-node/docker-compose.yaml build
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build IT image
working-directory: bmq-sdk/src/test/docker
run: docker build --tag bmq-broker-java-it --build-arg "image=bmqbrkr:latest" .
run: docker build --tag bmq-broker-java-it --build-arg "image=bloomberg/blazingmq:latest" .

- name: Build and run integration tests with Maven
timeout-minutes: 120
run: mvn --batch-mode -DskipUnitTests=true -Dspotbugs.skip=true -Dit.dockerImage=bmqbrkr:latest verify
run: mvn --batch-mode -DskipUnitTests=true -Dspotbugs.skip=true -Dit.dockerImage=bloomberg/blazingmq:latest verify

- name: Compress collected broker logs
if: failure()
Expand Down